I recently installed the Haskell Platform for Windows for a programming class I'm taking. It includes GHCi as a compiler and Cabal as a packaging system. I've been trying to install the Craft3e package with Cabal, as this is the exercise package that my textbook uses, but to no avail.
To install Craft3e, I just enter cabal unpack Craft3e
in the command prompt, which creates the directory "\Craft3e-0.1.0.8". After entering the directory, I type cabal install --disable-documentation
, which gives me the following message:
Resolving dependencies...
In order, the following would be installed:
time-1.2.0.5 (new version)
random-1.0.1.1 (reinstall) changes: time-1.4 -> 1.2.0.5
QuickCheck-2.5.1.1 (reinstall)
Craft3e-0.1.0.8 (new package)
cabal: The following packages are likely to be broken b
haskell-platform-2012.4.0.0
Use --force-reinstalls if you want to install anyway.
After using cabal install --disable-documentation --force-reinstalls
, it install as expected. I load a module to test it out: ghci PicturesSVG
. This loads successfully. However, once I quit the GHCi compiler and go back into it, I can no longer load the modules from the Craft3e packages; instead, I get the message:
GHCi, version 7.4.2: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
<command line>:
Could not find module `PicturesSVG'
it is a hidden module in the package `Craft3e-0.1.0.8'
Use -v to see a list of the files searched for.
Failed, modules loaded: none.
What happened? The package still shows up when I enter ghc-pkg list
. I've tried entering ghc-pkg expose Craft3e-0.1.0.8
, but the prompt tells me:
WARNING: cache is out of date: C:/Program Files (x86)/Haskell Platform/2012.4.0.
0\lib\package.conf.d\package.cache
use 'ghc-pkg recache' to fix.
I've done the recache, and re-entered the "expose" command, but still no results.
Any solutions would be really appreciated!