From 50617fe41d382132472c3beec50749b21e21325c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gr=C3=B6ber?= Date: Mon, 17 Apr 2017 00:19:48 +0200 Subject: [PATCH] docker.sh: Add GHC 8.2.1-rc1 (not working yet) --- scripts/docker.sh | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/scripts/docker.sh b/scripts/docker.sh index 1d379a1..e04b513 100755 --- a/scripts/docker.sh +++ b/scripts/docker.sh @@ -6,10 +6,10 @@ target="$1" tmpdir=$(mktemp -p "${TMPDIR:-/tmp/}" -d ghc-mod-docker-XXXX) || exit 1 trap 'rm -r '"$tmpdir" 0 2 15 -while read ghc ghc_arch ghc_ext cabal image ghc_hash cabal_hash; do - [ -n "$target" -a x"$ghc" != x"$target" ] && continue +while read ghc_rel ghc ghc_arch ghc_ext cabal image ghc_hash cabal_hash; do + [ -n "$target" -a x"$ghc_rel" != x"$target" ] && continue - ghc_url="https://downloads.haskell.org/~ghc/$ghc/ghc-${ghc}-${ghc_arch}.tar.${ghc_ext}" + ghc_url="https://downloads.haskell.org/~ghc/${ghc_rel}/ghc-${ghc}-${ghc_arch}.tar.${ghc_ext}" cabal_install_url="https://www.haskell.org/cabal/release/cabal-install-${cabal}/cabal-install-${cabal}.tar.gz" ADDITIONAL_COMMANDS="" @@ -73,11 +73,12 @@ EOF -t "${namespace}:ghc${ghc}-cabal-install${cabal}" \ "$tmpdir" done <