|
|
@ -34,13 +34,13 @@ $ sudo apt-get install python-software-properties # v12.04 and below
|
|
|
|
$ sudo apt-get install software-properties-common # v12.10 and above
|
|
|
|
$ sudo apt-get install software-properties-common # v12.10 and above
|
|
|
|
$ sudo add-apt-repository -y ppa:hvr/ghc
|
|
|
|
$ sudo add-apt-repository -y ppa:hvr/ghc
|
|
|
|
$ sudo apt-get update
|
|
|
|
$ sudo apt-get update
|
|
|
|
$ sudo apt-get install cabal-install-1.20 ghc-7.8.4 happy-1.19.4 alex-3.1.3
|
|
|
|
$ sudo apt-get install cabal-install-1.22 ghc-7.8.4 happy-1.19.5 alex-3.1.4
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Then add the following to your `$PATH` (bash\_profile, zshrc, bashrc, etc):
|
|
|
|
Then add the following to your `$PATH` (bash\_profile, zshrc, bashrc, etc):
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
```
|
|
|
|
~/.cabal/bin:/opt/cabal/1.20/bin:/opt/ghc/7.8.4/bin:/opt/happy/1.19.4/bin:/opt/alex/3.1.3/bin
|
|
|
|
~/.cabal/bin:/opt/cabal/1.22/bin:/opt/ghc/7.8.4/bin:/opt/happy/1.19.5/bin:/opt/alex/3.1.4/bin
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
*Optional:* You could also add `.cabal-sandbox/bin` to your path. Code that you
|
|
|
|
*Optional:* You could also add `.cabal-sandbox/bin` to your path. Code that you
|
|
|
|