Reputation: 481
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:
Upvotes: 15
Views: 6657
Reputation: 8070
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.
Upvotes: 13
Reputation: 877
Try to tell ghc
to build dynamically linked object files and executables, e.g., by
cabal install --dependencies-only --ghc-option=-dynamic
Upvotes: 6