Ch. A. Herrmann
Tue, 23 Oct 2001 12:53:45 +0200
John> I think the problem is that Enum in haskell means not only
John> enumerable types, but types which have enumerable subsets when
John> taken with an incrementer. which the reals satisfy.
This is a good justification.
John> this can be demonstrated by things like [1.0, 1.1 ..] which is
John> obviously equinumerous to the integers.
I'd prefer to write [ 1.0 + fromIntegral i / 10 | i<-[0..n] ] since you
can be sure that the list has (n+1) elements (if n>=0).