>From the Haskell 98 report (section 6.3.4): > For Float and Double, the semantics of the enumFrom family is given by the > rules for Int above, except that the list terminates when the elements become > greater than e3+i/2 for positive increment i, or > when they become less > than e3+i/2 for negative i.
So yes, it is surprising, but according to the specification. But then again the very concept of a type like Float having an Enum instance is a bit weird. _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
