Gentoo and Haskell

The most important part is that this overlay requires a specific unmasking procedure to prevent blockers.

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

With cabal 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/caball-install to install Haskell packages. Instead, emerge should be used. If you need a package that isn't in the main Gentoo tree, it may be present in the Haskell overlay. 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: