Haskell missing files in base package

Viewed 5316

I have never had this before but today I tried to use ghc and get:

could not find module
there are files missing in the base-4.10.0.0 package

ghc-pkg check returns:

https://pastebin.com/aCmr9igi

3 Answers

I had the exact same issue. Installing ghc-static fixed it.

You probably need to tell ghc to use shared libraries via the -dynamic flag, e.g.

$ ghc --make -dynamic path/to/file.hs

Doing this means you do not need to install the ghc-static package.

Try to tell ghc to build dynamically linked object files and executables, e.g., by

cabal install --dependencies-only --ghc-option=-dynamic
Related