This behavior is consistent with Show instances of integral types in
base and allows the result of show to be parsed as Haskell code.
The added test used to fail and now passes:
show (Just (-1)): FAIL
test/test.hs:116:
expected: "Just (-1.0)"
but got: "Just -1.0"
This behavior is consistent with Show instances of integral types in base and allows the result of
show
to be parsed as Haskell code. The added test used to fail and now passes: