Skip to content

Commit

Permalink
Fix doctests for compatibility with GHC 9.2
Browse files Browse the repository at this point in the history
Based on advice from @sol in
sol/doctest#326 (comment).
  • Loading branch information
sjakobi committed Dec 19, 2021
1 parent 41ad78d commit 7e6960f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions bsb-http-chunked.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ test-suite doctests
, doctest >= 0.8
ghc-options: -Wall
type: exitcode-stdio-1.0
if impl(ghc >= 9.2)
-- https://github.com/sjakobi/bsb-http-chunked/issues/38
buildable: False

benchmark bench
hs-source-dirs: bench
Expand Down
2 changes: 1 addition & 1 deletion tests/Doctests.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Test.DocTest

main :: IO ()
main = doctest ["-isrc", "Data/ByteString/Builder/HTTP/Chunked.hs"]
main = doctest ["-isrc", "-XHaskell2010", "Data/ByteString/Builder/HTTP/Chunked.hs"]


0 comments on commit 7e6960f

Please sign in to comment.