Skip to content

Instantly share code, notes, and snippets.

@notogawa
Last active May 21, 2017 09:00
Show Gist options
  • Save notogawa/12f929e4cd5e27c10cd1e79647a7ebb1 to your computer and use it in GitHub Desktop.
Save notogawa/12f929e4cd5e27c10cd1e79647a7ebb1 to your computer and use it in GitHub Desktop.
cabal-install for ghc-8.2.1-rc1

ghc-8.2.1-rc1でcabal-installを試すにはcabalのリポジトリe4c36b9dd時点に, このパッチ当てて

EXTRA_CONFIGURE_OPTS="--allow-newer=base,time" ./bootstrap.sh

あと,配布されてる ghc-8.2.0.20170404-x86_64-deb8-linux.tar.xz はjesssieだとリンクに失敗するのでsidにしとくといい

diff --git a/cabal-install/bootstrap.sh b/cabal-install/bootstrap.sh
index edf53e250..dcd7b9292 100755
--- a/cabal-install/bootstrap.sh
+++ b/cabal-install/bootstrap.sh
@@ -243,7 +243,7 @@ HTTP_VER="4000.3.3"; HTTP_VER_REGEXP="4000\.(2\.([5-9]|1[0-9]|2[0-9])|3\.?)"
# >= 4000.2.5 < 4000.4
ZLIB_VER="0.6.1.2"; ZLIB_VER_REGEXP="(0\.5\.([3-9]|1[0-9])|0\.6)"
# >= 0.5.3 && <= 0.7
-TIME_VER="1.7" TIME_VER_REGEXP="1\.[1-7]\.?"
+TIME_VER="1.8" TIME_VER_REGEXP="1\.[1-8]\.?"
# >= 1.1 && < 1.8
RANDOM_VER="1.1" RANDOM_VER_REGEXP="1\.[01]\.?"
# >= 1 && < 1.2
@@ -274,7 +274,7 @@ HACKAGE_SECURITY_VER="0.5.2.2"; HACKAGE_SECURITY_VER_REGEXP="0\.5\.(2\.[2-9]|[3-
BYTESTRING_BUILDER_VER="0.10.8.1.0"; BYTESTRING_BUILDER_VER_REGEXP="0\.10\.?"
TAR_VER="0.5.0.3"; TAR_VER_REGEXP="0\.5\.([1-9]|1[0-9]|0\.[3-9]|0\.1[0-9])\.?"
# >= 0.5.0.3 && < 0.6
-HASHABLE_VER="1.2.4.0"; HASHABLE_VER_REGEXP="1\."
+HASHABLE_VER="1.2.6.0"; HASHABLE_VER_REGEXP="1\."
# 1.*
HACKAGE_URL="https://hackage.haskell.org/package"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment