Skip to content

Commit

Permalink
CI: Work around ndmitchell/safe#35 on GHC 7.10
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanGlScott committed Apr 20, 2024
1 parent ad5aa11 commit b945ab6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ jobs:
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package th-orphans" >> cabal.project ; fi
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
cat >> cabal.project <<EOF
if ! impl ( ghc >= 8.0 )
constraints: safe < 0.3.18
EOF
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(th-orphans)$/; }' >> cabal.project.local
cat cabal.project
Expand Down
5 changes: 5 additions & 0 deletions cabal.haskell-ci
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
distribution: bionic
no-tests-no-benchmarks: False
unconstrained: False

-- Work around https://github.com/ndmitchell/safe/issues/35 on GHC 7.10
raw-project
if !impl(ghc >= 8.0)
constraints: safe < 0.3.18

0 comments on commit b945ab6

Please sign in to comment.