I installed ghc
and cabal-install
on Ubuntu using this way.
When I install a package using cabal sandbox init
and cabal install thepackage
, the installation runs fine, but the package is not found in GHC (message: "It is not a module in the current program, or in any known package.").
I have spent a couple of hours in trying to solve this problem, unsuccessfully. I took a look at this post, but it is for Windows, this post, but it doesn't help me, this FAQ, but I tried with and without the --global
option, and the result is the same.
Some info about my installation:
$ which cabal
/opt/cabal/1.22/bin/cabal
$ which ghc
/opt/ghc/7.10.3/bin/ghc
I have a ~/.ghc
folder, but it is empty. It looks like the installed packages are in the folder ~/.cabal/packages/hackage.haskell.org
and ~/.cabal-sandbox/lib/x86_64-linux-ghc-7.10.3
.