Fork me on GitHub

Before you Install

A recent version of the Glasgow Haskell Compiler (GHC) is required to build, install, and run husk. The recommended way to get GHC is to install the Haskell Platform.

husk has been tested to work on Windows, Linux, and FreeBSD.

Install using Cabal

After installing the Haskell Platform, Husk may be installed using Cabal:

cabal update
cabal install husk-scheme
Before running husk you may also need to add the cabal executable directory to your path. On Linux this is ~/.cabal/bin. Now you are ready to go:
# Run the interpreter
# Run the compiler

Build from Source

Alternatively, husk may be built from source. The first thing you need to do is download the latest version of husk from here.

Before building husk, all of the required dependencies must be available. On Fedora these dependencies are:

  • ghc
  • ghc-doc
  • ghc-parsec-devel
  • ghc-haskeline-devel
  • ghc-ghc-paths-devel
  • ghc-ghc-devel
The same packages are necessary regardless of your platform, but the names may differ.

Once husk has been downloaded and dependencies have been met, the following commands may be used to build, install, and optionally test the husk executable and libraries:
# Build and Install husk to your HOME directory
make all
make install

# Optional steps to run all the built-in unit tests
make test
make testc