From 7565687fcb1be7c671e39e5c58c99840ddace57e Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 4 Apr 2018 17:47:36 +0100 Subject: [PATCH] tools: always generate cabal files with hpack 0.20 to avoid warnings Not great, requires makefile users to have a "hpack-0.20" in $PATH. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 74eb7fd60..57b603eff 100644 --- a/Makefile +++ b/Makefile @@ -86,7 +86,7 @@ GHCI=ghci #-package ghc-datasize #-package ghc-heap-view # HADDOCK=haddock # CABAL=cabal # CABALINSTALL=cabal install -w $(GHC) -STACK=stack +STACK=stack --with-hpack=hpack-0.20 #STACK=stack --stack-yaml=stack-ghc7.yaml # -j16 sometimes gives "commitAndReleaseBuffer: resource vanished (Broken pipe)" but seems harmless @@ -1429,7 +1429,7 @@ setversion: $(VERSIONSENSITIVEFILES) #$(call def-help,setversion, update version # hpack --silent $(dir $*) # gencabal: $(call def-help,gencabal, regenerate cabal files from package.yaml files with stack ) - stack build --dry-run --silent + $(STACK) build --dry-run --silent # updatecabal: gencabal $(call def-help,updatecabal, regenerate cabal files and commit ) # @read -p "please review changes then press enter to commit $(shell ls */*.cabal)"