Available ebuild repositories

Compiler and interpreter

The probably most important and up-to-date Haskell-implementation is the Glasgow Haskell Compiler (GHC). You can install it with:

root #emerge --ask dev-lang/ghc

The package also includes an interpreter called GHCI (except on the ARM-architecture).

Furthermore, there's Hugs, an (meanwhile (almost) out-dated) interpreter for Haskell98. You can install it with:

root #emerge --ask dev-lang/hugs98

cabal tool

With cabal tool you can package and build libraries and programs. Install it with:

root #emerge --ask dev-haskell/cabal-install

WarningThe Gentoo Haskell team does not recommend the use of dev-haskell/cabal-install to install Haskell packages. Instead, emerge should be used, or the package should be installed locally in a sandbox. If you need a package that isn't in the main Gentoo tree, it may be present in the Haskell ebuild repository. If not, please file a bug/issue, or ask us in #gentoo-haskell on IRC!

Updating Haskell packages

Sometimes:

root #emerge -auvDN --keep-going @world

has trouble figuring out how to update Haskell packages. Providing emerge with the full list of dev-haskell packages that have upgrades available can sometimes help:

Haskell-Mode for Vim

Troubleshooting

Haskell ebuilds failing with out of memory error

When MAKEOPTS is set to allow parallel jobs, ghc may fail in Haskell ebuilds with ghc: failed to create OS thread: Cannot allocate memory. To fix this, lower the amount of jobs set in MAKEOPTS, or do not allow parallel jobs at all. MAKEOPTS can be overridden for failing ebuilds as described in Overriding environment variables per package.