-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird test failure due to type error with GHC 9.2.1 #326
Comments
@sjakobi invoking $ cabal install doctest --overwrite-policy=always && cabal build && cabal repl --build-depends=QuickCheck --build-depends=template-haskell --with-ghc=doctest
Examples: 5 Tried: 5 Errors: 0 Failures: 0 Starting with |
As I describe here sjakobi/bsb-http-chunked#38 (comment), if I invoke I'm closing this, but please don't be shy to open a new issue if you think there is something that we can do in |
So as Ryan explains in https://gitlab.haskell.org/ghc/ghc/-/issues/20833#note_398289, the problem seems to be that the doctests invoked via To me that seems like a bug somewhere in EDIT: For reference: haskell/cabal#4500 contains some discussion on better |
@sjakobi I'm not convinced that this is the case.
What I assume is that you just need to pass import Test.DocTest
main :: IO ()
main = doctest ["-isrc", "-XHaskell2010", "Data/ByteString/Builder/HTTP/Chunked.hs"] (untested) I still think that with
|
Based on advice from @sol in sol/doctest#326 (comment).
Based on advice from @sol in sol/doctest#326 (comment).
Thank you, @sol! I had totally forgotten to check how these doctests are invoked.
This is good to know, but I'd really to prefer to be able to run the tests with just I'd love to have good support for doctests built into |
Based on advice from @sol in sol/doctest#326 (comment).
bsb-http-chunked:test:doctests
fails with a weird type error that I can't reproduce with older GHC versions orcabal repl
.Please see sjakobi/bsb-http-chunked#38.
The text was updated successfully, but these errors were encountered: