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
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:
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