[Haskell-beginners] Re: Using The Cabal that comes with GHC 6.10 on Windows

Andy Stewart lazycat.manatee at gmail.com
Sat Mar 7 05:52:00 EST 2009


Glenn <streborg at hotmail.com> writes:

> Hi,
>
> I'm sure this should be very simple, but I can't find any obvious 
> documentation in the GHC doco that tells me how to get started with Cabal.
>
> I've installed GHC 6.10.1, which comes with Cabal.
> However, it doesn't seem to come in executable form ?
> So, I'm not sure what I need to do - build the executable, presumably ?
> I could download the prebuilt executable version of Cabal, but it seems 
> pointless to include it in GHC, and then go download another one.
>
> Sorry for this stupid question !
> Could anyone give me a hint on how to proceed ?
Hi,

Default, GHC 6.10.1 just including Cabal, if you want use Cabal, you
have to install others package: HTTP, zlib, cabal-install.

Below the detail install method:
------------------------------> method start <------------------------------
1. Install HTTP package:
- Download http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HTTP
- Unpack and execute command:
  ghc --make Setup && ./Setup configure && ./Setup build && sudo ./Setup install
  
2. Install zlib package:
- Download http://hackage.haskell.org/cgi-bin/hackage-scripts/package/zlib  
- Unpack and execute command:
  ghc --make Setup && ./Setup configure && ./Setup build && sudo ./Setup install
  
3. Install cabal-install package:
- Download http://hackage.haskell.org/cgi-bin/hackage-scripts/package/cabal-install
- Unpack and execute command:
  ghc --make Setup && ./Setup configure && ./Setup build && sudo ./Setup install
------------------------------> method end   <------------------------------

Then you can use cabal.

Enjoy!

  -- Andy



More information about the Beginners mailing list