From 699f882b0c732f6e83200f83bb3562e891c86f8d Mon Sep 17 00:00:00 2001 From: kusut Date: Sun, 6 Jul 2014 13:55:30 +0700 Subject: [PATCH 1/2] Update debian installation new deb repo + manual compilation info --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 959c7da..65a7d21 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,11 @@ Then add `~/.cabal/bin:/opt/cabal/1.20/bin:/opt/ghc/7.8.2/bin:/opt/happy/1.19.3/ ### Debian -Debian can follow the same steps as Ubuntu, but has to execute an additional command. Immediately after `sudo add-apt-repository -y ppa:hvr/ghc` is ran, run: +#### GHC Repository for debian stable +If you use debian stable, it is easier to use this: http://deb.haskell.org/ + +#### Using Ubuntu PPA +If you're not using stable, you can follow the same steps as Ubuntu, but has to execute an additional command. Immediately after `sudo add-apt-repository -y ppa:hvr/ghc` is ran, run: - `sudo sed -i s/wheezy/trusty/g /etc/apt/sources.list.d/hvr-ghc-wheezy.list` @@ -45,6 +49,13 @@ For other Debian versions, just replace all occurences of "wheezy" with your ver If, for some reason, the file `/etc/apt/sources.list.d/hvr-ghc-wheezy.list` does not exist, try the same command but with `/etc/apt/sources.list` instead. +#### Manual compilation +You can follow the guide written for Mac OS X: http://www.davesquared.net/2014/05/platformless-haskell.html. Notes: +- set your prefix accordingly when configuring ghc +- instead of grabbing the `cabal-install` binary, grab the source and then run `bootstrap.sh` script. + + + ### Arch Linux To install Haskell from the official repos on Arch Linux From 38a53dff86f30390e72b6d8db96bece8a125b9f7 Mon Sep 17 00:00:00 2001 From: kusut Date: Sun, 6 Jul 2014 14:32:50 +0700 Subject: [PATCH 2/2] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 65a7d21..5d08695 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,10 @@ Then add `~/.cabal/bin:/opt/cabal/1.20/bin:/opt/ghc/7.8.2/bin:/opt/happy/1.19.3/ ### Debian #### GHC Repository for debian stable -If you use debian stable, it is easier to use this: http://deb.haskell.org/ +If you use debian stable, it is easier to use this: http://deb.haskell.org/. After installing GHC: +- Get `cabal-install` source at https://www.haskell.org/cabal/download.html +- Run `bootstrap.sh` +- Run `cabal update && cabal install cabal cabal-install alex happy` #### Using Ubuntu PPA If you're not using stable, you can follow the same steps as Ubuntu, but has to execute an additional command. Immediately after `sudo add-apt-repository -y ppa:hvr/ghc` is ran, run: