From bf0e69bee73c98ed656584a2885a8d3fbadd5c87 Mon Sep 17 00:00:00 2001 From: Kirill Zaborsky Date: Thu, 11 Apr 2019 16:40:31 +0300 Subject: [PATCH] Use GHC version defined in build-constraints.yaml --- etc/curator-2-check.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/curator-2-check.sh b/etc/curator-2-check.sh index abafaae6..d9759b61 100755 --- a/etc/curator-2-check.sh +++ b/etc/curator-2-check.sh @@ -2,7 +2,8 @@ set -euxo pipefail -export GHCVER=8.6.3 +ETC=$(cd $(dirname $0) ; pwd) +export GHCVER=$(sed -n "s/^ghc-version: \"\(.*\)\"/\1/p" "$ETC/../build-constraints.yaml") # Download and unpack the stack executable mkdir -p ~/.local/bin