Compiler optimizations questions for ghc 6.10...
bertram.felgenhauer at googlemail.com
Sat Feb 21 04:37:22 EST 2009
Krasimir Angelov wrote:
> How mod is affected by the change in quot? Currently mod is defined as:
> a `mod` b
> | b == 0 = divZeroError
> | a == minBound && b == (-1) = overflowError
> | otherwise = a `modInt` b
> and modInt is defined via remInt# which is primitive. Did you change
> the definition of mod as well?
Yes I did. div, mod, quot, rem, divMod, quotRem, for Ints of various
More information about the Glasgow-haskell-users