Setting up exercises for haskell-platform 2013.2

79 views
Skip to first unread message

David Tchepak

unread,
May 28, 2013, 9:50:20 PM5/28/13
to haskell-exercises
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

Liam McLennan

unread,
May 28, 2013, 11:09:45 PM5/28/13
to David Tchepak, haskell-exercises
The advice I got on irc was to favour virthualenv over cabal-dev for reasons that were not clear. I have been using it for all my projects along with a .cabal file to specify dependencies.




--
You received this message because you are subscribed to the Google Groups "haskell-exercises" group.
To unsubscribe from this group and stop receiving emails from it, send an email to haskell-exerci...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.





--
Liam McLennan.

li...@eclipsewebsolutions.com.au
http://www.eclipsewebsolutions.com.au
Reply all
Reply to author
Forward
0 new messages