RE: Missing defaults in Enum

1999-09-01 Thread Manuel M. T. Chakravarty
Simon Peyton-Jones [EMAIL PROTECTED] wrote, Ah, but that was with my editor's hat on! Somehow I forgot to apply the change to GHC. Thanks; it'll be in 4.04 patchlevel 1. Thanks, but please note that GHC misses both `enumFromThen' and `enumFrom'. Only the former was missing in the

Missing defaults in Enum

1999-08-31 Thread Manuel M. T. Chakravarty
GHC 4.04 thinks that data MyEnum = ATag instance Enum MyEnum where fromEnum ATag = 42 toEnum 42 = ATag justifies these warnings Main.hs:3: Warning: No explicit method nor default method for `enumFrom' in an instance declaration for `Enum' Main.hs:3:

RE: Missing defaults in Enum

1999-08-31 Thread Simon Peyton-Jones
Ah, but that was with my editor's hat on! Somehow I forgot to apply the change to GHC. Thanks; it'll be in 4.04 patchlevel 1. Simon -Original Message- From: Manuel M. T. Chakravarty Sent: Tuesday, August 31, 1999 4:14 PM To: [EMAIL PROTECTED] Subject: Missing defaults in Enum