Invalid Haskell Files in the Base Package

I have never had this before, but today I tried using ghc and getting:

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

ghc-pkg check returns:

https://pastebin.com/aCmr9igi

+4
source share
2 answers

You probably need to tell ghc about using shared libraries using a flag -dynamic, for example.

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

This means that you do not need to install the package ghc-static.

+3
source

I had the same problem. Installation ghc-staticfixed.

+2
source

Source: https://habr.com/ru/post/1686216/


All Articles