[commit: base] master: Fix quoteRem, rem, divMod and mod definitions (9b02e90)

Ian Lynagh igloo at earth.li
Sun Jun 26 15:54:27 CEST 2011


Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/9b02e90c860f41c6431e6a0015ea4f02ec770ced

>---------------------------------------------------------------

commit 9b02e90c860f41c6431e6a0015ea4f02ec770ced
Author: Ian Lynagh <igloo at earth.li>
Date:   Sun Jun 26 02:41:16 2011 +0100

    Fix quoteRem, rem, divMod and mod definitions
    
    We now have, e.g.,
        maxBound `rem` (-1) == 0
    rather than raising overflowError.

 GHC/Int.hs   |  104 ++++++++++++++++++++++++++++++++++++++--------------------
 GHC/Real.lhs |   20 +++++++----
 2 files changed, 80 insertions(+), 44 deletions(-)


Diff suppressed because of size. To see it, use:

    git show 9b02e90c860f41c6431e6a0015ea4f02ec770ced



More information about the Cvs-libraries mailing list