@@ -10,11 +10,20 @@
10# instructions, see:
10# instructions, see:
11# http://www.stackage.org/install
11# http://www.stackage.org/install
13−set -exu
13+set -exuo pipefail
15mkdir /home/stackage -p
15mkdir /home/stackage -p
17export DEBIAN_FRONTEND=noninteractive
17export DEBIAN_FRONTEND=noninteractive
21+apt-get install -y curl
24+curl -sSL https://get.haskellstack.org/ | sh -s - -d /usr/bin
25+stack setup --resolver ghc-$GHCVER
18apt-get update
27apt-get update
19apt-get install -y software-properties-common
28apt-get install -y software-properties-common
@@ -25,7 +34,7 @@ add-apt-repository -y --keyserver hkp://keyserver.ubuntu.com:80 'deb http://down
25add-apt-repository -y --keyserver hkp://keyserver.ubuntu.com:80 'deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main'
34add-apt-repository -y --keyserver hkp://keyserver.ubuntu.com:80 'deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main'
26add-apt-repository -y --keyserver hkp://keyserver.ubuntu.com:80 'deb http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main'
35add-apt-repository -y --keyserver hkp://keyserver.ubuntu.com:80 'deb http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main'
28−GHCVER=8.6.3
37+GHCVER=8.6.4
30apt-get update
39apt-get update
31apt-get install -y \
40apt-get install -y \
@@ -164,11 +173,6 @@ ACCEPT_EULA=Y apt-get install msodbcsql17 -y
165locale-gen en_US.UTF-8
174locale-gen en_US.UTF-8
167−curl -sSL https://get.haskellstack.org/ | sh
169−# Put documentation where we expect it
170−mv /opt/ghc/$GHCVER/share/doc/ghc-$GHCVER/ /opt/ghc/$GHCVER/share/doc/ghc
172# llvm-5.0 for GHC (separate since it needs wget)
176# llvm-5.0 for GHC (separate since it needs wget)
173wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - \
177wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - \
174 && add-apt-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main" \
178 && add-apt-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main" \
@@ -304,3 +308,7 @@ export CLANG_PURE_LLVM_INCLUDE_DIR=/usr/lib/llvm-3.9/include;
304# finally run:
308# finally run:
306# EOF: don't build anything below this line
310# EOF: don't build anything below this line
314+rm -rf /var/lib/apt/lists/*