@@ -24,6 +24,9 @@ add-apt-repository -y ppa:marutter/rrutter
2424# not sure what this was needed for
2525#add-apt-repository -y ppa:openstack-ubuntu-testing/icehouse
2626
27+# Set the GHC version
28+GHCVER=8.0.1
29+
2730# Get Stack
2831apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 575159689BEFB442
2932echo 'deb http://download.fpcomplete.com/ubuntu xenial main'|tee /etc/apt/sources.list.d/fpco.list
@@ -31,8 +34,8 @@ echo 'deb http://download.fpcomplete.com/ubuntu xenial main'|tee /etc/apt/source
3134apt-get update
3235apt-get install -y \
3336 build-essential \
34− ghc-8.0.1 \
35− ghc-8.0.1-htmldocs \
37+ ghc-$GHCVER \
38+ ghc-$GHCVER-htmldocs \
3639 hscolour \
3740 sudo \
3841 curl \
@@ -108,6 +111,9 @@ apt-get install -y \
108111 openjdk-8-jdk \
109112 zlib1g-dev
110113
114+# Put documentation where we expect it
115+mv /opt/ghc/$GHCVER/share/doc/ghc-$GHCVER/ /opt/ghc/$GHCVER/share/doc/ghc
116+
111117# Buggy versions of ld.bfd fail to link some Haskell packages:
112118# https://sourceware.org/bugzilla/show_bug.cgi?id=17689. Gold is
113119# faster anyways and uses less RAM.