[Haskell-cafe] Bug with [Double]

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Wed May 19 06:36:54 EDT 2010


Roman Leshchinskiy <rl at cse.unsw.edu.au> writes:
> Personally, I consider the Enum class itself to be broken.

Oh?  In what sense?

It seems to work fine for data types representing bounded enumerable
values with a proper mapping to/from Int (it's not bijective since
there's no proper mapping from Int -> Bool for example); the problem is
the fact that Double, etc. are made instances of Enum when this is not
the case for those data types.

-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
IvanMiljenovic.wordpress.com


More information about the Haskell-Cafe mailing list