From 353312e04527f30a1909b51b346322aa78e8c08e Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sun, 24 Apr 2022 20:36:37 -1000 Subject: [PATCH] lib: enable doctests with GHC 9.2+ (#1503) https://github.com/sol/doctest/issues/301 / https://github.com/sol/doctest/issues/327 seem to be specific to GHC 9.0. --- hledger-lib/hledger-lib.cabal | 2 +- hledger-lib/package.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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