Skip to content

Commit

Permalink
CI: Only run Haddock with GHC 8.2+
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanGlScott committed Aug 9, 2023
1 parent 86c75d6 commit 53266a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ jobs:
${CABAL} -vnormal check
- name: haddock
run: |
$CABAL v2-haddock --disable-documentation --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then $CABAL v2-haddock --disable-documentation --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all ; fi
- name: save cache
uses: actions/cache/save@v3
if: always()
Expand Down
3 changes: 3 additions & 0 deletions cabal.haskell-ci
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ no-tests-no-benchmarks: False
unconstrained: False
copy-fields: all
error-missing-methods: none
-- For reasons I don't fully understand, the Haddock bundled with pre-8.2
-- versions of GHC will fail to parse the code in the test suite.
haddock: >=8.2

0 comments on commit 53266a6

Please sign in to comment.