Haskell package guidelines

From ArchWiki
Revision as of 09:01, 15 December 2012 by Xrchz (talk | contribs) (remove outdated stuff and rewrite more clearly)
Jump to: navigation, search

Template:Package Guidelines

Haskell is well supported on Arch Linux. GHC and a few core packages are available in the official repositories. For more serious Haskellers, the ArchHaskell community project provides many packages from Hackage, and the number is growing.

See the ArchHaskell community page for contact details and ways to help.

Haskell Packages

To use Haskell on Arch Linux, you have two mutually exclusive options:

  1. Use packages from the official Arch Linux repositories. These are a well maintained small subset of all Haskell packages. Just install them the way you would install anything else on Arch Linux. Examples of what is available: in the extra and community repositories. The packages here should satisfy people who just want to use the Haskell Platform. You may also combine this option with other packages from unofficial sources like the AUR.
  2. Use the ArchHaskell project's unofficial repositories. These contain a much larger subset of what's available on Hackage. As a community effort, we often need volunteers to help maintain and add more packages to these repositories. Read on for information about using them.


The [haskell] repository is the base repository of packages maintained by the ArchHaskell team. [haskell] can be accessed by adding the following entry to /etc/pacman.conf (above [extra]):

Server = http://xsounds.org/~haskell/$arch

The set of packages in the [haskell] repository is derived from the habs tree officially located here. A tool called cblrepo is used to keep the habs tree synchronized with the official Haskell packages from Hackage.

Putting [haskell] above [extra] will ensure that the packages from [haskell] take precedence, in case of duplicate packages in the two repositories.


The [haskell-web] repository builds on [haskell], providing several more packages, especially those useful for web applications.

Server = http://archhaskell.mynerdside.com/$repo/$arch

Add it after [haskell].

Last resorts

Unfortunately, many of the packages in the AUR are outdated due to a lack of resources. If you have the time, it is recommended to use cblrepo and create something like [haskell-web], which can then be added to the collection of haskell-providing repositories.

Improving ArchHaskell

See the ArchHaskell community page and get in touch via the mailing list or the IRC channel. We are working on developing and documenting a workflow by which more repos like [haskell-web] can be added and maintained in a distributed fashion, with all of their packages collected in one user-facing repo.