Rational sequence

Ferenc Wagner wferi@afavant.elte.hu
Tue, 22 Oct 2002 12:48:08 +0200


Alastair Reid <alastair@reid-consulting-uk.ltd.uk> writes:

> Hmmmm, the CVS copy of Hugs seems to suffer from a different problem:
>
> Prelude> [0.5,1.5..5.5]::[Rational]
> [0 % 1,1 % 1,2 % 1,3 % 1,4 % 1,5 % 1]

Yes, the instance declaration misses the numericEnumFrom-
ThenTo case, so it defaults to this.  Btw, how can one have
a look at the GHC Prelude?
                                      Feri.