About GHC
Home
Survey
License
Documentation
Blog
FAQ
Download
Report a bug
Request a feature
Developers (Wiki)
The GHC Team
About Haskell
Haskell.Org
The Haskell 2010 Report
The Haskell Mailing List
Links
Haskell Platform
Hackage

Distribution Packages

The OS-specific packages (eg. RPMs on Linux) are generally a better bet than the vanilla .tar.bz2 binary bundles, because they will check for dependencies and allow the package to be uninstalled at a later date.

While they may lag behind the latest GHC release, we recommend using them anyway for the above reasons, unless you have a particular need for new features or bug fixes.

Available Packages

Packages are available for the following systems:


Arch Linux (i686, x86_64)

GHC packages are in the Arch Linux "extra" repository.

The packages are maintained by Vesa Kaihlavirta and Don Stewart. For more information on Arch Haskell packaging, see the Haskell package guidelines.


Debian (alpha, amd64, arm, hppa, i386, ia64, mips, mipsel, powerpc, s390, sparc)

All Debian platforms have ghc6 packages in the main Debian archive. Use apt-get update && apt-get install ghc6 ghc6-prof ghc6-doc to install them as normal; you can also get the library sources in the ghc6-libsrc package.

The extralibs, as well as various other libraries, are available as libghc6-library-dev. You may also want libghc6-library-prof and libghc6-library-doc for the profiling libraries and documentation respectively, but sometimes this will be included in the main package.

The packages are maintained by Kari Pahula. Debian Haskell packaging is coordinated on the Debian Haskell mailing list.


Fedora (i386, ppc, x86_64)

Fedora users can install with yum install ghc.

The packages are maintained by the Fedora Haskell SIG.


FreeBSD (x86)

GHC is in the FreeBSD ports tree as lang/ghc.

To install a binary package, try pkg_add -r ghc provided the package exists on whatever mirror site your system is set up to use.

To install from source instead, make sure your copy of /usr/ports is up to date, and say cd /usr/ports/lang/ghc && make install.

The packages are maintained by haskell@FreeBSD.org. For more information on FreeBSD Haskell packaging, see the Haskell FreeBSD Effort.


Gentoo (alpha, amd64, hppa, ia64, ppc, ppc64, sparc, x86, x86 fbsd)

GHC is available as an ebuild. Run emerge dev-lang/ghc to get the latest version Gentoo considers stable; later versions may be available but masked.

The packages are maintained by the Gentoo Haskell team.


MacOS X (Intel, PowerPC)

For Mac OS X we provide a native system installer, available on the download page for each release. We recommend using these installers rather than using the alternatives below.

GHC is available via the MacPorts system. compiler is built from source, using a binary bootstrap compiler. Both 10.4 (Tiger) and 10.5 (Leopard) are supported.

The packages are maintained by Gregory Wright.


NetBSD (x86)

GHC is in the NetBSD package tree as lang/ghc.

To install a binary package, try pkg_add -r ghc provided the package exists on whatever mirror site your system is set up to use. To install from source instead, make sure your copy of /usr/pkgsrc is up to date, and say cd /usr/pkgsrc/lang/ghc && make install.


OpenBSD (x86)

GHC is now in the OpenBSD ports tree as lang/ghc. Make sure your ports tree is up to date, and say cd /usr/ports/lang/ghc && make install.

The packages are maintained by Don Stewart.


OpenIndiana (amd64, i386)

GHC is now in the OpenIndiana package repository.

The packages are maintained by Alex Viskovatoff.


openSUSE (i586, x86_64)

RPMs are available from openSUSE.

The packages are maintained by Herbert Graeber.


T2 (amd64, i386, ...)

GHC is in the T2 SDE package repositories as ghc.

Binary packages may be included in pre-built ISO, installer images.

To install from source instead, just

cd /usr/src/t2-trunk
scripts/Emerge-Pkg ghc

The package is maintained by rene@t2-project.org.


Ubuntu (amd64, i386, powerpc)

Ubuntu has ghc6 packages in its universe repository. Enable the unvierse repository in Synaptics, and then install the ghc6, ghc6-prof and ghc-doc packages.

The extralibs, as well as various other libraries, are available as libghc6-library-dev. You may also want libghc6-library-prof and libghc6-library-doc for the profiling libraries and documentation respectively, but sometimes this will be included in the main package. You can also get the library sources in the ghc6-libsrc package.

Alternativesly, you can install from the command line: use apt-get update && apt-get install ghc6 ghc6-prof ghc6-doc to install GHC.

Ubuntu generally gets its Haskell packages from Debian. See also the Ubuntu Haskell page.