Skip to content

Instantly share code, notes, and snippets.

@iamdionysus
Created June 20, 2014 00:50
Show Gist options
  • Save iamdionysus/2395dda5437e865c477d to your computer and use it in GitHub Desktop.
Save iamdionysus/2395dda5437e865c477d to your computer and use it in GitHub Desktop.
How to install recent ghc and cabal for ubunt 12.04 by adding ppa

Add apt-repository, install ghc and cabal

I used this repository.

sudo add-apt-repository ppa:hvr/ghc
sudo apt-get install ghc-7.8.3
sudo apt-get install cabal-install-1.20

Add the bin directory to PATH

The packages install into /opt/ghc/$VER and /opt/cabal/$VER respectively. If you use zsh, make sure to add to bash settings as well. In Emacs haskell-mode, when hasekll-interactive-bring command tries to load ghci, the PATH envrionment seems to be under bash. Save the settings and test.

source .zshrc
source .bashrc
which ghci
which cabal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment