on master help sign in
Rename doc dir for GHC 8
f559910Michael Snoyman
debian-bootstrap.sh+8−2
@@ -24,6 +24,9 @@ add-apt-repository -y ppa:marutter/rrutter
24# not sure what this was needed for
24# not sure what this was needed for
25#add-apt-repository -y ppa:openstack-ubuntu-testing/icehouse
25#add-apt-repository -y ppa:openstack-ubuntu-testing/icehouse
26
26
27+# Set the GHC version
28+GHCVER=8.0.1
29+
27# Get Stack
30# Get Stack
28apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 575159689BEFB442
31apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 575159689BEFB442
29echo 'deb http://download.fpcomplete.com/ubuntu xenial main'|tee /etc/apt/sources.list.d/fpco.list
32echo '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
31apt-get update
34apt-get update
32apt-get install -y \
35apt-get install -y \
33 build-essential \
36 build-essential \
34− ghc-8.0.1 \
37+ ghc-$GHCVER \
35− ghc-8.0.1-htmldocs \
38+ ghc-$GHCVER-htmldocs \
36 hscolour \
39 hscolour \
37 sudo \
40 sudo \
38 curl \
41 curl \
@@ -108,6 +111,9 @@ apt-get install -y \
108 openjdk-8-jdk \
111 openjdk-8-jdk \
109 zlib1g-dev
112 zlib1g-dev
110
113
114+# Put documentation where we expect it
115+mv /opt/ghc/$GHCVER/share/doc/ghc-$GHCVER/ /opt/ghc/$GHCVER/share/doc/ghc
116+
111# Buggy versions of ld.bfd fail to link some Haskell packages:
117# Buggy versions of ld.bfd fail to link some Haskell packages:
112# https://sourceware.org/bugzilla/show_bug.cgi?id=17689. Gold is
118# https://sourceware.org/bugzilla/show_bug.cgi?id=17689. Gold is
113# faster anyways and uses less RAM.
119# faster anyways and uses less RAM.