Sven writes:
> Both GHC and Hugs have a bug in their Prelude for Ratio's Enum
> instance. ... The reason for this
> is that the default method for enumFromThenTo is used, which truncates
> 4%3 to 1 (same for enumFromTo).
I'd say that this is a bug in the Library Report, which seems to
specify this implementation.
(By the way, nhc98 suffers the same bug for the same reason, so can
whoever fixes it first please publish their code so we can all share
it? :-)
Regards,
Malcolm
- Enum instance for Ratio Sven Panne
- Re: Enum instance for Ratio Malcolm Wallace
- Re: Enum instance for Ratio Sven Panne
- Re: Enum instance for Ratio George Russell
- Re: Enum instance for Ratio Marc van Dongen
- Re: Enum instance for Ratio George Russell
- Re: Enum instance for Ratio Marc van Dongen
- RE: Enum instance for Ratio Simon Peyton-Jones
