diff --git a/hledger-lib/hledger-lib.cabal b/hledger-lib/hledger-lib.cabal index 740b338931e..949df1e63a5 100644 --- a/hledger-lib/hledger-lib.cabal +++ b/hledger-lib/hledger-lib.cabal @@ -184,7 +184,7 @@ test-suite doctest , uglymemo , unordered-containers >=0.2 , utf8-string >=0.3.5 - if impl(ghc >= 9.0) + if impl(ghc >= 9.0) && impl(ghc < 9.2) buildable: False default-language: Haskell2010 diff --git a/hledger-lib/package.yaml b/hledger-lib/package.yaml index 78975479e7a..833c8b35ab0 100644 --- a/hledger-lib/package.yaml +++ b/hledger-lib/package.yaml @@ -164,9 +164,9 @@ tests: - doctest >=0.18.1 - Glob >=0.7 - # disable doctest with GHC 9 for now, https://github.com/sol/doctest/issues/301 + # disable doctest with GHC 9.0, https://github.com/sol/doctest/issues/301 when: - - condition: impl(ghc >= 9.0) + - condition: impl(ghc >= 9.0) && impl(ghc < 9.2) buildable: false # ghc 8.4+ on mac needs this workaround. See