[ketil@ii.uib.no: Re: Enum class]

Sigbjorn Finne sof@galconn.com
Wed, 24 Oct 2001 11:01:38 -0700


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" <dpt@math.harvard.edu>
To: <hugs-bugs@haskell.org>
Sent: Wednesday, October 24, 2001 02:54
Subject: [ketil@ii.uib.no: Re: Enum class]

I just wanted to be sure you saw this from the Haskell list.

--Dylan Thurston

----- Forwarded message from Ketil Malde <ketil@ii.uib.no> -----

To: Pixel <pixel@mandrakesoft.com>
Cc: George Russell <ger@tzi.de>, haskell@haskell.org
Subject: Re: Enum class
From: Ketil Malde <ketil@ii.uib.no>

Pixel <pixel@mandrakesoft.com> 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.