Remove Enum from Float and Double

harry voldermort at hotmail.com
Tue Jun 11 20:18:43 CEST 2013


Johan Tibell <johan.tibell at ...> writes:

> I don't see much gain. It will break previously working code and the
workaround to the breakage will likely be manually reimplementing enumFromTo
in each instance.

I forgot the main point of my post :-)

The primary motivation for removing these instances is that they cause
endless confusion for beginners, e.g.
http://stackoverflow.com/questions/13203471/the-math-behind-1-0999999999999999-in-haskell,
http://stackoverflow.com/questions/9810002/floating-point-list-generator,
http://stackoverflow.com/questions/7290438/haskell-ranges-and-floats,
http://stackoverflow.com/questions/10328435/how-to-solve-floating-point-number-getting-wrong-in-list-haskell,
and many more.

On the other hand, how much working code is there "correctly" using there
instances?




More information about the Haskell-prime mailing list