Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting Cabal to work with GHC 6.12.1

Tags:

haskell

ghc

cabal

I've installed the latest GHC package (6.12.1) on OS X, but I can't get Cabal to work. I've removed the version I had previously that worked with GHC 6.10 and tried to re-install from scratch. The latest Cabal version available for download is 1.6.0.2. However, when I try to build this I get the following error:

Configuring Cabal-1.6.0.2...
Setup: failed to parse output of 'ghc-pkg dump'

From what I've found searching, this seems to suggest that the version of Cabal is too old for the version of GHC. Is there any way to get Cabal to work with GHC 6.12.1 yet?

EDIT: To be clear, I'm trying to set-up cabal-install.

like image 530
Dan Dyer Avatar asked Dec 15 '09 15:12

Dan Dyer


3 Answers

Have you downloaded cabal-install-0.8.0 from Hackage? The bootstrap.sh should work correctly with ghc-6.12.1.

http://hackage.haskell.org/package/cabal-install

like image 159
Dagititis Avatar answered Nov 18 '22 03:11

Dagititis


GHC 6.12.1 comes with Cabal 1.8.0.2, you don't need to install anything extra to get it.

Just install GHC 6.12.1 and type ghc-pkg list Cabal and you'll see.

like image 21
L. Kolmodin Avatar answered Nov 18 '22 02:11

L. Kolmodin


I heard someone on the #Haskell IRC channel on Freenode say that they had Cabal-install working fine from the repositories. If you don't want to wait for the next release, you should be able to get it from the darcs repo.

like image 34
Rayne Avatar answered Nov 18 '22 01:11

Rayne