From 81ad760e49afed24d506b779c20ac3296e330229 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Mon, 25 Apr 2022 01:33:53 -1000 Subject: [PATCH] test: disable doctest for all but GHC 9.2 --- hledger-lib/hledger-lib.cabal | 2 +- hledger-lib/package.yaml | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hledger-lib/hledger-lib.cabal b/hledger-lib/hledger-lib.cabal index 949df1e63..e0066fee4 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) && impl(ghc < 9.2) + if impl(ghc < 9.2) buildable: False default-language: Haskell2010 diff --git a/hledger-lib/package.yaml b/hledger-lib/package.yaml index 833c8b35a..eae41f602 100644 --- a/hledger-lib/package.yaml +++ b/hledger-lib/package.yaml @@ -164,9 +164,11 @@ tests: - doctest >=0.18.1 - Glob >=0.7 - # disable doctest with GHC 9.0, https://github.com/sol/doctest/issues/301 when: - - condition: impl(ghc >= 9.0) && impl(ghc < 9.2) + # 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) buildable: false # ghc 8.4+ on mac needs this workaround. See