From ab01c7c2a2ad22429c2e6dd1688dd52e59bcf58f Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Mon, 29 Aug 2022 10:53:10 +0100 Subject: [PATCH] lib: re-enable doctests with ghc 8.10, to improve CI test --- .github/workflows/test-linux-x64.yml | 1 + hledger-lib/package.yaml | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-linux-x64.yml b/.github/workflows/test-linux-x64.yml index 798e3fede..a6405d120 100644 --- a/.github/workflows/test-linux-x64.yml +++ b/.github/workflows/test-linux-x64.yml @@ -227,6 +227,7 @@ jobs: # # --pedantic --no-run-benchmarks # if: env.CONTINUE + # Note: doctests won't run if using GHC 9.0, see hledger-lib/package.yaml - name: Build all hledger modules fast, warning free, run unit/doc/bench tests env: stack: ${{ matrix.plan.stack }} diff --git a/hledger-lib/package.yaml b/hledger-lib/package.yaml index 93ec8e54b..9172c3e59 100644 --- a/hledger-lib/package.yaml +++ b/hledger-lib/package.yaml @@ -171,9 +171,7 @@ tests: when: # disable doctest with GHC 9.0, https://github.com/sol/doctest/issues/301 - #- condition: impl(ghc >= 9.0) && impl(ghc < 9.2) - # GHC 8.6 seems to be failing now also - - condition: impl(ghc < 9.2) + - condition: impl(ghc >= 9.0) && impl(ghc < 9.2) buildable: false # ghc 8.4+ on mac needs this workaround. See