Thanks Dylan, Hugs is indeed wrong, I've checked in the same (obvious) fix that was made to GHC's Enum Integer instance a long time ago.
--sigbjorn ----- Original Message ----- From: "Dylan Thurston" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 24, 2001 02:54 Subject: [[EMAIL PROTECTED]: Re: Enum class] I just wanted to be sure you saw this from the Haskell list. --Dylan Thurston ----- Forwarded message from Ketil Malde <[EMAIL PROTECTED]> ----- To: Pixel <[EMAIL PROTECTED]> Cc: George Russell <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Subject: Re: Enum class From: Ketil Malde <[EMAIL PROTECTED]> Pixel <[EMAIL PROTECTED]> writes: > i':: Integer > i'= 0x7fffffff > i_plus_1' = i+1 > -- ghc : 2147483648 > -- hugs: 2147483648 > i_succ' = succ i' > -- ghc : 2147483648 > -- hugs: -2147483648 I think Hugs is wrong. Integer shouldn't wrap. _______________________________________________ Hugs-Bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/hugs-bugs
