This is a bug in the deriving code... Haskell 1.3 added a method and we didn't derive code for it! I'm fixing it in my copy so it'll appear in the next release, which I'm now planning. Simon | From: Magnus Carlsson <[EMAIL PROTECTED]> | Date: Fri, 25 Oct 1996 00:27:21 +0200 (MET DST) | Compiling and running the program | | data X = X1 | X2 | X3 deriving (Eq,Ord,Enum,Show) | | main = print (fromEnum X1) | | gives the output | | Fail: noDefaultMethodError:Prelude.Enum.fromEnum" | | /Magnus
- 2.01: fromEnum & toEnum missing when deriving ins... Magnus Carlsson
- Simon L Peyton Jones
