Re: [Haskell-cafe] question about "faulting in" Haskell packages ...

You need to get cabal-install. Here's how I got it working on kubuntu : 1) install GHC 6.8.3 from haskell.org's binaries (kubuntu hardy isn't at 6.8.3 yet....) 2) download from hackage : * cabal-install-0.5.1.tar.gz from hackage * HTTP-3001.0.4.tar.gz * zlib-0.4.0.4.tar.gz * Cabal-1.4.0.1.tar.gz 3) build and install http, zlib, Cabal and then cabal-install for each package you have to type (*) : runhaskell Setup.hs configure runhaskell Setup.hs build sudo runhaskell Setup.hs install (*) sometimes it'll be Setup.lhs, I'm annoyed that it's not always the same name, can't rely on shell history :( 4) once cabal-install is installed you can do cabal update sudo cabal upgrade --global that'll upgrade all your ghc's packages. 5) from now if you want to install package a just type cabal install a --global cabal should download packages b,c,d for you if required. P.S. Sorry for the previous email, it got sent before I finished it :)

cool david ....
1) I have to upgrade to ghc 6.8.3
2) I "may/probably will have more" questions
very kind thanks,
vasili
On Sat, Aug 2, 2008 at 1:52 AM, david48
wrote:
You need to get cabal-install. Here's how I got it working on kubuntu :
1) install GHC 6.8.3 from haskell.org's binaries (kubuntu hardy isn't at 6.8.3 yet....) 2) download from hackage : * cabal-install-0.5.1.tar.gz from hackage * HTTP-3001.0.4.tar.gz * zlib-0.4.0.4.tar.gz * Cabal-1.4.0.1.tar.gz
3) build and install http, zlib, Cabal and then cabal-install
for each package you have to type (*) :
runhaskell Setup.hs configure runhaskell Setup.hs build sudo runhaskell Setup.hs install
(*) sometimes it'll be Setup.lhs, I'm annoyed that it's not always the same name, can't rely on shell history :(
4) once cabal-install is installed you can do
cabal update sudo cabal upgrade --global
that'll upgrade all your ghc's packages.
5) from now if you want to install package a just type
cabal install a --global
cabal should download packages b,c,d for you if required.
P.S. Sorry for the previous email, it got sent before I finished it :)

for each package you have to type (*) :
runhaskell Setup.hs configure runhaskell Setup.hs build sudo runhaskell Setup.hs install
(*) sometimes it'll be Setup.lhs, I'm annoyed that it's not always the same name, can't rely on shell history :(
That's why you should always write e.g. 'runhaskell Setup configure', since runhaskell is clever enough to figure out the suffix for you. :-) Cheers, /Niklas

david48 wrote:
for each package you have to type (*) :
runhaskell Setup.hs configure runhaskell Setup.hs build sudo runhaskell Setup.hs install
(*) sometimes it'll be Setup.lhs, I'm annoyed that it's not always the same name, can't rely on shell history :(
Same here; my solution is to always compile it using 'ghc --make Setup' (note the missing extension) and then ./Setup afterwards. Cheers Ben
participants (4)
-
Ben Franksen
-
david48
-
Galchin, Vasili
-
Niklas Broberg