Cabal: A framework for packaging Haskell software

[ bsd3, distribution, library ] [ Propose Tags ] [ Report a vulnerability ]

The Haskell Common Architecture for Building Applications and Libraries: a framework defining a common interface for authors to more easily build their Haskell applications in a portable way.

The Haskell Cabal is part of a larger infrastructure for distributing, organizing, and cataloging Haskell libraries and tools.


[Skip to Readme]

Modules

[Index]

Downloads

Versions [RSS] 1.1.6, 1.2.1, 1.2.2.0, 1.2.3.0, 1.2.4.0, 1.4.0.0, 1.4.0.1, 1.4.0.2, 1.6.0.1, 1.6.0.2, 1.6.0.3, 1.8.0.2, 1.8.0.4, 1.8.0.6, 1.10.0.0, 1.10.1.0, 1.10.2.0, 1.12.0, 1.14.0, 1.16.0, 1.16.0.1, 1.16.0.2, 1.16.0.3, 1.18.0, 1.18.1, 1.18.1.1, 1.18.1.2, 1.18.1.3, 1.18.1.4, 1.18.1.5, 1.18.1.6, 1.18.1.7, 1.20.0.0, 1.20.0.1, 1.20.0.2, 1.20.0.3, 1.20.0.4, 1.22.0.0, 1.22.1.0, 1.22.1.1, 1.22.2.0, 1.22.3.0, 1.22.4.0, 1.22.5.0, 1.22.6.0, 1.22.7.0, 1.22.8.0, 1.24.0.0, 1.24.1.0, 1.24.2.0, 2.0.0.2, 2.0.1.0, 2.0.1.1, 2.2.0.0, 2.2.0.1, 2.4.0.0, 2.4.0.1, 2.4.1.0, 3.0.0.0, 3.0.1.0, 3.0.2.0, 3.2.0.0, 3.2.1.0, 3.4.0.0, 3.4.1.0, 3.6.0.0, 3.6.1.0, 3.6.2.0, 3.6.3.0, 3.8.1.0, 3.10.1.0, 3.10.2.0, 3.10.2.1, 3.10.3.0, 3.12.0.0, 3.12.1.0, 3.14.0.0 (info)
Change log changelog
Dependencies array (>=0.1 && <0.5), base (>=4 && <5), bytestring (>=0.9), containers (>=0.1 && <0.6), deepseq (>=1.3 && <1.4), directory (>=1 && <1.3), filepath (>=1 && <1.4), pretty (>=1 && <1.2), process (>=1.0.1.1 && <1.3), time (>=1.1 && <1.5), unix (>=2.0 && <2.8) [details]
License BSD-3-Clause
Copyright 2003-2006, Isaac Jones 2005-2011, Duncan Coutts
Author Isaac Jones <ijones@syntaxpolice.org> Duncan Coutts <duncan@community.haskell.org>
Maintainer cabal-devel@haskell.org
Category Distribution
Home page http://www.haskell.org/cabal/
Bug tracker https://github.com/haskell/cabal/issues
Source repo head: git clone https://github.com/haskell/cabal/(Cabal)
Uploaded by JohanTibell at 2013-09-20T18:47:19Z
Distributions Arch:3.6.3.0, Fedora:3.8.1.0
Reverse Dependencies 260 direct, 4084 indirect [details]
Downloads 373708 total (1064 in the last 30 days)
Rating 2.75 (votes: 15) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for Cabal-1.18.1

[back to package description]
The Cabal library package
=========================

[Cabal home page](http://www.haskell.org/cabal/)

If you also want the `cabal` command line program then you need
the `cabal-install` package in addition to this library.


Installation instructions for the Cabal library
===============================================

If you have the `cabal` program already
---------------------------------------

In this case it's simple, just

    cabal install

Of course, if you don't have an existing version of the `cabal` program
then to get one you'd first need to install the Cabal library! To avoid
this bootstrapping problem, you can install the Cabal library directly:

Installing as a user (no root or administrator access)
------------------------------------------------------

    ghc --make Setup
    ./Setup configure --user
    ./Setup build
    ./Setup install

Note the use of the `--user` flag at the configure step.

Compiling Setup rather than using `runghc Setup` is much faster and works on
Windows. For all packages other than Cabal itself it is fine to use `runghc`.

This will install into `$HOME/.cabal/` on unix and into
`$Documents and Settings\$User\Application Data\cabal\` on Windows
If you want to install elsewhere use the `--prefix=` flag at the
configure step.


Installing as root / Administrator
----------------------------------

    ghc --make Setup
    ./Setup configure
    ./Setup build
    sudo ./Setup install

Compiling Setup rather than using `runghc Setup` is much faster and works on
Windows. For all packages other than Cabal itself it is fine to use `runghc`.

This will install into `/usr/local` on unix and on Windows it will
install into `$ProgramFiles/Haskell`. If you want to install
elsewhere use the `--prefix=` flag at the configure step.


Working with older versions of GHC and Cabal
============================================

It is recommended just to leave any pre-existing version of Cabal
installed. In particular it is *essential* to keep the version that
came with GHC itself since other installed packages need it (eg the
"ghc" api package).

Prior to GHC 6.4.2 however, GHC didn't deal particularly well with
having multiple versions of packages installed at once. So if you
are using GHC 6.4.1 or older and you have an older version of Cabal
installed, you probably just want to remove it:

    ghc-pkg unregister Cabal

or if you had Cabal installed just for your user account then:

    ghc-pkg unregister Cabal --user


The `filepath` dependency
=========================

Cabal now uses the `filepath` package so that must be installed first.
GHC-6.6.1 and later come with `filepath` however earlier versions do not by
default. If you do not already have `filepath` then you need to install it. You
can use any existing version of Cabal to do that. If you have neither Cabal or
filepath then it is slightly harder but still possible.

Unpack Cabal and filepath into separate directories. For example:

    tar -xzf filepath-1.1.0.0.tar.gz
    tar -xzf Cabal-1.6.0.0.tar.gz

    # rename to make the following instructions simpler:
    mv filepath-1.1.0.0/ filepath/
    mv Cabal-1.6.0.0/ Cabal/

    cd Cabal
    ghc -i../filepath -cpp --make Setup.hs -o ../filepath/setup
    cd ../filepath/
    ./setup configure --user
    ./setup build
    ./setup install

This installs filepath so you are then in a position to install Cabal by the
normal method.


More Information
================

Please see the web site for the [user guide] and API documentation.
There is some more information available on the [development wiki].

[user guide]:       http://www.haskell.org/cabal/
[development wiki]: http://hackage.haskell.org/trac/hackage/


Bugs
=======

Please report bugs and wish-list items in our [bug tracker].

[bug tracker]: https://github.com/haskell/cabal/issues


Your Help
---------

To help us in the next round of development work it would be
enormously helpful to know from our users what their most pressing
problems are with Cabal and Hackage. You probably have a favourite
Cabal bug or limitation. Take a look at our [bug tracker]. Make sure
the problem is reported there and properly described. Comment on the
ticket to tell us how much of a problem the bug is for you. Add
yourself to the ticket's cc list so we can discuss requirements and
keep you informed on progress. For feature requests it is very
helpful if there is a description of how you would expect to
interact with the new feature.


Code
=======

You can get the code from the web page; the version control system we
use is very open and welcoming to new developers.

You can get the main development branch:

> darcs get --partial http://darcs.haskell.org/cabal

and you can get the stable 1.6 branch:

> darcs get --partial http://darcs.haskell.org/cabal-branches/cabal-1.6


Credits
=======

Cabal Coders (in alphabetical order):

- Krasimir Angelov
- Bjorn Bringert
- Duncan Coutts
- Isaac Jones
- David Himmelstrup (Lemmih)
- Simon Marlow
- Ross Patterson
- Thomas Schilling
- Martin Sjögren
- Malcolm Wallace
- and nearly 30 other people have contributed occasional patches

Cabal spec:

- Isaac Jones
- Simon Marlow
- Ross Patterson
- Simon Peyton Jones
- Malcolm Wallace