Last active

Embed URL


SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Installing GHC and Cabal under the home directory


Installing GHC and Cabal under the home directory

  1. Install libgmp-dev or equivalent using the system package manager.
  2. Add export PATH="$HOME/.ghc/bin:$HOME/.cabal/bin:$HOME/.cabal-sandbox/bin:$PATH" to your .profile/.zprofile.
  3. Also run the command above now.
  4. Get the GHC binary tarball and extract it.
  5. ./configure --prefix="$HOME/.ghc" && make install
  6. Get the cabal-install source tarball and extract it.
  8. cabal update
  9. Add library-profiling: True and documentation: True to ~/.cabal/config.
    • Add require-sandbox: True if you want to prevent accidental installation of packages outside a sandbox.

Purging both from the system

  1. rm -fr ~/.ghc ~/.cabal
  2. Remove the export PATH… line from your .*profile.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.