You need to sign in or sign up before continuing.
Show for Double and Float doesn't use parenthesis for negative zero.
For any other negative number, show would use parenthesis. This is visually disconcerting, and prevents the expression from being pasted back into ghci.
Prelude> Just (-0/1)
Just -0.0
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.6.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | libraries/haskell98 |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | Multiple |
| Architecture | Multiple |