Personal tools

Cabal-Install

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
(download binaries)
Line 27: Line 27:
   
 
If that succeeds, that's possibly the last time you ever installed a foreign Haskell package manually!
 
If that succeeds, that's possibly the last time you ever installed a foreign Haskell package manually!
  +
  +
== Download binaries ==
  +
  +
Some hints from Haskell-Cafe on [http://www.haskell.org/pipermail/haskell-cafe/2009-January/053835.html runghc Setup.hs doitall]
  +
* [http://haskell.org/~duncan/cabal/cabal.exe Windows]
  +
* [http://users.informatik.uni-halle.de/~thielema/Haskell/cabal Linux on Intel]
   
 
== See also ==
 
== See also ==

Revision as of 14:36, 20 January 2009

The cabal-install package provides the cabal command-line program which simplifies the process of managing Haskell software by automating the fetching, configuration, compilation and installation of Haskell libraries and programs. Those packages must be prepared using Cabal and should be present at HackageDB.

Once you have running cabal-install installation of further packages is just one simple shell call like

 cabal install new-package

Also uploading a new package to HackageDB is as simple as

 cabal upload ./dist/new-package-1.0.tar.gz

But before you can do that, you have to complete the:

1 Installation

You must download the following tarballs and you must build and install them manually.

Cabal-install package itself:

  http://hackage.haskell.org/cgi-bin/hackage-scripts/package/cabal-install

Dependencies that aren't in core:

  http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HTTP
  http://hackage.haskell.org/cgi-bin/hackage-scripts/package/zlib

Note the last one assumes you have zlib the C library and its header files installed. Those header files are usually in a package like zlib-devel. On Windows, cabal-install bundles the Zlib library, so you won't need to obtain it yourself.

If that succeeds, that's possibly the last time you ever installed a foreign Haskell package manually!

2 Download binaries

Some hints from Haskell-Cafe on runghc Setup.hs doitall

3 See also