
21 May
2010
21 May
'10
9:48 p.m.
2010/5/21 R J
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