I ran into cabal dependency problems when trying to setup the
exercises after installing the latest Haskell Platform:
Test/Framework/Providers/QuickCheck2.hs:16:31:
Module `Test.QuickCheck.Test' does not export `run'
Failed to install test-framework-quickcheck2-0.2.4
I found an easy way to resolve this, although I'm not sure if it is a
good solution.
First, install cabal-dev [1], which lets us use sandboxed dependencies
for individual projects
$ cabal install cabal-dev
Next, install the course dependencies using cabal-dev.
$ cd course
course $ cabal-dev install
We can now run ghci with these sandboxed dependencies:
course $ cabal-dev ghci
GHCi, version 7.6.3:
http://www.haskell.org/ghc/ :? for help
Ok, modules loaded: Course, L01.Id, ...
ghci>
If we forget and run "ghci" instead of "cabal-dev ghci", we'll get a
"Could not find module `Test.Framework.Providers.QuickCheck2'" or
similar message. In that case just quit ghci, and rerun as "cabal-dev
ghci".
Hope this helps.
[1]
https://github.com/creswick/cabal-dev/blob/master/README.md