Roman Leshchinskiy <r...@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.miljeno...@gmail.com
IvanMiljenovic.wordpress.com
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to