tags:

views:

423

answers:

1

I see there's a nice package system called Cabal that handles dependency resolution. So I'm trying to install that so I can get it to install the Haskell OpenGL modules for me. However, Cabal itself has lots of dependencies. Is there a way to install Cabal without manually resolving all of its dependencies? I tried running the bootstrap, but that doesn't seem to do it, because it reports missing modules parsec and network (which in turn have their own dependencies).

Manually building the dep's got me about 3 deep before the mtl module install crapped out on me:

user@machine:~/haskell/mtl-1.1.0.2$ runghc Setup build
Preprocessing library mtl-1.1.0.2...
Building mtl-1.1.0.2...

Control/Monad/Cont.hs:74:7:
    Could not find module `Control.Monad':
      Perhaps you haven't installed the profiling libraries for package base?
      Use -v to see a list of the files searched for.
+4  A: 

You should install the Haskell Platform ("batteries included")

yairchu
Thanks! Just what I needed.
nont
Although this helped, I later installed the Haskell Platform and got the same error trying to compile it. I was able to get past it by doing this on ubuntu: apt-get install libghc6-mtl-dev Found on: http://rubynugs.blogspot.com/2007/12/next-haskell-error-controlmonadreader.html
nont
and: sudo apt-get install libghc6-mtl-prof
nont