Ticket #2759 (closed bug: fixed)
Data.Generics.ConstrRep isn't general enough
| Reported by: | guest | Owned by: | dreixel |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.12 branch |
| Component: | libraries (other) | Version: | 6.10.1 |
| Keywords: | Cc: | jpm@…, lennart@… | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
The type ConstrRep? in Data.Generics is used to represent constructors for types. The FloatConstr? constructor is the one used for all kinds of floating point primitives. But FloatConstr? has an argument of type Double. This limits the primitive floating point types to those that are accurately representable as a Double. In other places in Haskell where an accurate and generic floating point value is needed the type Rational is used. It should be used here too.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

