Opened 4 years ago
Closed 4 years ago
#9240 closed bug (fixed)
"read . show ≡ id" not satisfied by Data.Fixed
| Reported by: | hvr | Owned by: | ekmett |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.10.1 |
| Component: | Core Libraries | Version: | 7.2.1 |
| Keywords: | Cc: | hvr, ekmett, core-libraries-committee@… | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Test Case: | |
| Blocked By: | Blocking: | ||
| Related Tickets: | #9231 | Differential Rev(s): | Phab:D547 |
| Wiki Page: |
Description (last modified by )
As pointed out in #9231, the desired property "read . show ≡ id" is not satisfied for all resolutions. For instance, consider the following example:
> data B7 > instance HasResolution B7 where resolution _ = 128 > 1.070 :: Fixed B7 1.062 > 1.062 :: Fixed B7 1.054 > read "1.070" :: Fixed B7 1.062 > read "1.062" :: Fixed B7 1.054
This behaviour can be reproduced all the way back to GHC 7.2.1
Change History (5)
comment:1 Changed 4 years ago by
| Description: | modified (diff) |
|---|---|
| Related Tickets: | #9213 → #9231 |
comment:2 Changed 4 years ago by
| Component: | libraries/base → Core Libraries |
|---|---|
| Owner: | set to ekmett |
comment:3 Changed 4 years ago by
| Cc: | core-libraries-committee@… added |
|---|---|
| Differential Rev(s): | → Phab:D547 |
| Status: | new → patch |
comment:5 Changed 4 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | patch → closed |
Note: See
TracTickets for help on using
tickets.

Moving over to new owning component 'Core Libraries'.