You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Overlay Hackage Package Index for GHC HEAD: https://github.com/hvr/head.hackage
117
122
- |
118
123
if $GHCHEAD; then
119
-
sed -i.bak 's/-- allow-newer:.*/allow-newer: *:base, *:template-haskell, *:ghc, *:Cabal/' ${HOME}/.cabal/config
124
+
sed -i 's/-- allow-newer: .*/allow-newer: *:base/' ${HOME}/.cabal/config
125
+
for pkg in $($HCPKG list --simple-output); do pkg=$(echo $pkg | sed 's/-[^-]*$//'); sed -i "s/allow-newer: /allow-newer: *:$pkg, /" ${HOME}/.cabal/config; done
- "if ! $NOINSTALLEDCONSTRAINTS; then for pkg in $($HCPKG list --simple-output); do echo $pkg | grep -vw -- unix | sed 's/^/constraints: /' | sed 's/-[^-]*$/ installed/' >> cabal.project.local; done; fi"
- "if ! $NOINSTALLEDCONSTRAINTS; then for pkg in $($HCPKG list --simple-output); do echo $pkg | grep -vw -- unix | sed 's/^/constraints: /' | sed 's/-[^-]*$/ installed/' >> cabal.project.local; done; fi"
165
+
- cat cabal.project || true
166
+
- cat cabal.project.local || true
153
167
# this builds all libraries and executables (without tests/benchmarks)
154
168
- cabal new-build -w ${HC} --disable-tests --disable-benchmarks all
155
169
156
-
157
170
# build & run tests, build benchmarks
158
171
- cabal new-build -w ${HC} ${TEST} ${BENCH} all
159
172
@@ -164,5 +177,5 @@ script:
164
177
- rm -rf ./dist-newstyle
165
178
- if $HADDOCK; then cabal new-haddock -w ${HC} ${TEST} ${BENCH} all; else echo "Skipping haddock generation";fi
0 commit comments