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