Open felixonmars opened 4 years ago
Thanks, I see what happened there and I'll fix it soon.
The issue is the handling of negative literals: your Show
instance for SrcSpan
does not put parens around negative numbers (which means that Read
won't work, so you may want to fix this).
pretty-show
used to accept these, but I seem to have changed it the last time I tried to add
ad-hoc support for dealing with times. I think I should be able to reintroduce it though.
4 out of the 5 test failures in the recent haskell-src-exts issue https://github.com/haskell-suite/haskell-src-exts/issues/448 seems to be new pretty-show not willing to prettify the result.
One of the examples is:
This used to work fine in pretty-show 1.9.5.