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
- Re: 2.01: fromEnum & toEnum missing when deriving... Magnus Carlsson
- Re: 2.01: fromEnum & toEnum missing when der... Simon L Peyton Jones
