Enum, Bounded, and Arithmetic Sequences

Alastair Reid alastair@reid-consulting-uk.ltd.uk
Wed, 25 Jun 2003 09:52:35 +0100


> PS: and enumFromThenTo should just be removed, alongside n+k patterns :-)

Even though enumFromThenTo is useful for Integral types and Rational?

   [1,3 ..]
   [0,1/2 .. 10] :: [Rational]

The only problems with enumFromThenTo come from providing Float and Double 
instances (and are the same problems encountered with providing Float and 
Double instances for enumFrom).

--
Alastair Reid