Could not load module ‘Language.Haskell.Exts’

Hi

I get this error.

Could not load module ‘Language.Haskell.Exts’
It is a member of the hidden package ‘haskell-src-exts-1.23.1’.
You can run ‘:set -package haskell-src-exts’ to expose it.
(Note: this unloads all the modules in the current scope.)
Use -v (or :set -v in ghci) to see a list of the files searched for.
|
45 | import Language.Haskell.Exts
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Any one help ?

cabal-install version 3.0.0.0
compiled using version 3.0.1.0 of the Cabal library
The Glorious Glasgow Haskell Compilation System, version 8.8.4
OS Fedora 34

Do you have a project with a *.cabal file which you build with cabal build or do you have a *.hs file which you compile with ghc directly? (Or something else?)

1 Like