I'm trying to load my .hs file but when I import Data.Numbers.CReal
, it gives me the error Failed to load interface for 'Data.Numbers.CReal'
. I have runned cabal install numbers
and if I cabal list --installed
the number pkg appears, but if I ghc-pkg list
it doesn't (also if I ghc-pkg check
it gives LOTS of haddock warnings). Is it related to my non-loading file? How can I solve this?
Ps. I know how to import packages, but I'm not sure if I am importing this one properly.
Thanks and sorry if I didn't explained myself correctly.
The answer to this
was yes. I don't remember the second option, but I've managed to solve it myself. What I specifically did was:
Now the ghc-pkg list command and the cabal list --installed show both my installed packages, and they work without problems.
Ps. I gave detailed information from the process in case anyone needs it in the future. Still not sure what caused that cabal and ghc didn't show the same pkgs.