[Haskell-cafe] Enum instantiation

Antoine Latter aslatter at gmail.com
Fri May 21 21:48:25 EDT 2010


2010/5/21 R J <rj248842 at hotmail.com>:
> I'd like to make "Day" an instance of class "Enum," but the definition of
> toEnum below seems to be completely wrong, because integers seem not permit
> pattern matching.  How is toEnum defined?  Thanks.

Hi,

What error are you getting when you try your class instance?

Thanks,
Antoine


More information about the Haskell-Cafe mailing list