diff --git a/hledger-lib/hledger-lib.cabal b/hledger-lib/hledger-lib.cabal index 2bb3a9c8d95..a095fd30b12 100644 --- a/hledger-lib/hledger-lib.cabal +++ b/hledger-lib/hledger-lib.cabal @@ -185,6 +185,8 @@ test-suite doctest , uglymemo , unordered-containers >=0.2 , utf8-string >=0.3.5 + if impl(ghc >= 9.0) + buildable: False default-language: Haskell2010 test-suite unittest diff --git a/hledger-lib/package.yaml b/hledger-lib/package.yaml index 51b0c292b7f..34d2a6e4522 100644 --- a/hledger-lib/package.yaml +++ b/hledger-lib/package.yaml @@ -165,6 +165,11 @@ tests: - doctest >=0.18.1 - Glob >=0.7 + # disable doctest with GHC 9 for now, https://github.com/sol/doctest/issues/301 + when: + - condition: impl(ghc >= 9.0) + buildable: false + # ghc 8.4+ on mac needs this workaround. See # https://github.com/sol/doctest/issues/199 # https://ghc.haskell.org/trac/ghc/ticket/15105#comment:10 :