Skip to content

Commit

Permalink
lib: enable doctests with GHC 9.2+ (#1503)
Browse files Browse the repository at this point in the history
sol/doctest#301 /
sol/doctest#327
seem to be specific to GHC 9.0.
  • Loading branch information
simonmichael committed Apr 25, 2022
1 parent d750ad5 commit 6bfefaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hledger-lib/hledger-lib.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions hledger-lib/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6bfefaf

Please sign in to comment.