@@ -159,7 +159,6 @@ before_install:
159159 echo " url: http://hackage.haskell.org/" >> $CABALHOME/config
160160 - |
161161 if $HEADHACKAGE; then
162- echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1/g')" >> $CABALHOME/config
163162 echo "repository head.hackage.ghc.haskell.org" >> $CABALHOME/config
164163 echo " url: https://ghc.gitlab.haskell.org/head.hackage/" >> $CABALHOME/config
165164 echo " secure: True" >> $CABALHOME/config
@@ -197,6 +196,10 @@ install:
197196 echo "constraints: foundatiion >= 0.14" >> cabal.project
198197 echo "allow-newer: servant-js:servant" >> cabal.project
199198 echo "allow-newer: servant-js:servant-foreign" >> cabal.project
199+ - |
200+ if $HEADHACKAGE; then
201+ echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1,/g')" >> $CABALHOME/config
202+ fi
200203 - "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | (grep -vE -- '^(servant|servant-client|servant-docs|servant-server)$' || true) | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
201204 - cat cabal.project || true
202205 - cat cabal.project.local || true
@@ -242,6 +245,10 @@ script:
242245 echo "constraints: foundatiion >= 0.14" >> cabal.project
243246 echo "allow-newer: servant-js:servant" >> cabal.project
244247 echo "allow-newer: servant-js:servant-foreign" >> cabal.project
248+ - |
249+ if $HEADHACKAGE; then
250+ echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1,/g')" >> $CABALHOME/config
251+ fi
245252 - "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | (grep -vE -- '^(servant|servant-client|servant-docs|servant-server)$' || true) | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
246253 - cat cabal.project || true
247254 - cat cabal.project.local || true
0 commit comments