Skip to content

Instantly share code, notes, and snippets.

@lattejed
Created October 10, 2014 08:53
Show Gist options
  • Save lattejed/7498f5ed6b01fec1a3db to your computer and use it in GitHub Desktop.
Save lattejed/7498f5ed6b01fec1a3db to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential curl zlib1g-dev libgmp3-dev libedit2
# GHC 7.8.3
curl -O http://www.haskell.org/ghc/dist/7.8.3/ghc-7.8.3-x86_64-unknown-linux-deb7.tar.bz2
tar xvfj ghc-7.8.3-x86_64-unknown-linux-deb7.tar.bz2
cd ghc-7.8.3 && ./configure
make install
cd ..
# cabal-install
curl -O http://hackage.haskell.org/package/cabal-install-1.20.0.3/cabal-install-1.20.0.3.tar.gz
tar xvfz cabal-install-1.20.0.3.tar.gz
cd cabal-install-1.20.0.3 && ./bootstrap.sh
cd ..
echo "PATH=$HOME/.cabal/bin:$PATH" >> ~/.bashrc; source ~/.bashrc
# Cleanup
rm -rf ghc-7.8.3-x86_64-unknown-linux-deb7.tar.bz2 ghc-7.8.3
rm -rf cabal-install-1.20.0.3*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment