Haskell 98: Enum class

Ketil Malde ketil@ii.uib.no
25 Oct 2001 10:09:27 +0200

Malcolm Wallace <Malcolm.Wallace@cs.york.ac.uk> writes:

>> 5.  In Appendix A, the Enum class defn, add comments to explain that the
>> default methods only work for types whose fromEnum/toEnum range fits
>> inside Int.

> I would rather have correct default definitions.

Somebody raised the issue why to/fromEnum doesn't use Integer instead
of Int.  This would, it would seem, solve at least some of the Enum
problems that arise from (integral) types with more than 4G values.
So, again, why not?

If I haven't seen further, it is by standing in the footprints of giants