make toEnum and fromEnum take and return Integers
Change the signature of toEnum and fromEnum in the Enum a typeclass to
toEnum :: Integer -> a
fromEnum :: a -> Integer
(they currently use Int)
It's possible, for example, to have Enumeratable types that are larger than Int
pros: No overflow possibilities
cons: efficiency
Trac metadata
Trac field | Value |
---|---|
Version | |
Type | Task |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Proposal |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |