Skip to content

Commit

Permalink
;lib: disable doctest with GHC 8.10 for now (sol/doctest#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichael committed Mar 19, 2020
1 parent 2416630 commit af715a3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions hledger-lib/package.yaml
Expand Up @@ -157,7 +157,6 @@ library:
tests:

unittest:
buildable: true
source-dirs: test
main: unittest.hs
other-modules: [] # prevent double compilation, https://github.com/sol/hpack/issues/188
Expand All @@ -168,6 +167,7 @@ tests:
# so we ensure this is generated, see cabal.project.
# https://github.com/simonmichael/hledger/issues/1139
doctest:
buildable: true
source-dirs: test
main: doctests.hs # can't call it doctest.hs ("File name does not match module name")
other-modules: [] # prevent double compilation, https://github.com/sol/hpack/issues/188
Expand All @@ -187,8 +187,9 @@ tests:
# - condition: os(darwin) && impl(ghc >= 8.4)
# buildable: false

# ghc 8.0 on linux:
# Hledger/Read/JournalReader.hs:126: failure in expression `rejp (journalp <* eof) "2015/1/1\n a 0\n"' ... Variable not in scope: rejp :: f0 a0 -> [Char] -> t
# ghc 8.10 isn't supported by doctest yet, https://github.com/sol/doctest/issues/246
# ghc 8.0 on linux gives Hledger/Read/JournalReader.hs:126: failure in expression `rejp (journalp <* eof) "2015/1/1\n a 0\n"' ... Variable not in scope: rejp :: f0 a0 -> [Char] -> t
# must use one conditional here, https://github.com/sol/hpack/issues/379
when:
- condition: (impl(ghc < 8.2))
- condition: (impl(ghc < 8.2) || impl(ghc >= 8.10))
buildable: false

0 comments on commit af715a3

Please sign in to comment.