Because, you know, every once in a while …

Clear out existing stuff

rm ~/.ghc ~/.cabal

Get basic stuff

sudo apt-get update
sudo apt-get install ghc cabal-install

Set up cabal

cabal update
cabal install cabal-install

Set up misc recommended packages

cabal install happy alex
cabal install ghc-mod structured-haskell-mode stylish-haskell