Closed simonmichael closed 1 month ago
$ ghci -ignore-dot-ghci
GHCi, version 9.10.1: https://www.haskell.org/ghc/ :? for help
ghci> Just "Kč"
Just "K\269"
Show
instance of String
shows č
as \269
.ghci
uses show
by default.-interactive-print
to ghci
? If yes, you can try to pass the same option to doctest
.Aha, you're right; I have a .ghci containing
:set -interactive-print=Text.Pretty.Simple.pPrintNoColor
I think keeping my doctests aligned with the default GHCI behaviour is best, even if they're a little less pretty/readable. Thank you for the insight.
Thanks for doctest!
I have a test whose output appears like this in GHCI:
But in the doctest comment I must write it like this:
or it would fail:
Why is this happening, and would it be possible to support this instead ?