> A quick question: what is the intended behaviour of the
> Hugs/ghc extension types Int8, Int16, Int32, and Int64
> with regard to overflow? The documentation for the Word*
> types says that they compute modulo arithmetic, but there
> is no similar guarantee for the Int* types. Is it the
> intention that their behaviour on overflow is deliberately
> left undefined? Or is it safe to rely on them just wrapping
> on overflow?
They're supposed to wrap on overflow.
> Either way, I think it would be a good idea to clarify this
> in the Hugs/GHC Extension libraries documentation.
Will do.
Cheers,
Simon