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
122
117
- |
123
118
if $GHCHEAD; then
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
119
+
sed -i.bak 's/-- allow-newer:.*/allow-newer: *:base, *:template-haskell, *:ghc, *:Cabal/' ${HOME}/.cabal/config
- "if ! $NOINSTALLEDCONSTRAINTS; then for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/^/constraints: /' | sed 's/-[^-]*$/ installed/' >> cabal.project.local; done; fi"
- "if ! $NOINSTALLEDCONSTRAINTS; then for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/^/constraints: /' | sed 's/-[^-]*$/ installed/' >> cabal.project.local; done; fi"
165
-
- cat cabal.project || true
166
-
- cat cabal.project.local || true
152
+
- cat cabal.project
167
153
# this builds all libraries and executables (without tests/benchmarks)
168
154
- cabal new-build -w ${HC} --disable-tests --disable-benchmarks all
169
155
156
+
170
157
# build & run tests, build benchmarks
171
158
- cabal new-build -w ${HC} ${TEST} ${BENCH} all
172
159
@@ -177,5 +164,5 @@ script:
177
164
- rm -rf ./dist-newstyle
178
165
- if $HADDOCK; then cabal new-haddock -w ${HC} ${TEST} ${BENCH} all; else echo "Skipping haddock generation";fi
0 commit comments