[GHC] #10691: certain operations in new integer-gmp are too lazy

GHC ghc-devs at haskell.org
Sun Jul 26 06:56:43 UTC 2015


#10691: certain operations in new integer-gmp are too lazy
-------------------------------------+-------------------------------------
        Reporter:  rwbarton          |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  libraries         |                 Version:  7.10.1
  (other)                            |
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  Incorrect result  |  Unknown/Multiple
  at runtime                         |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by hvr):

 Bummer... I put quite some effort to model the `Integer` type to allow for
 such case-analysis for being able to avoid allocations and FFI calls in
 case of operations with absorbing elements... :-/

 I wonder if and how `nofib` will regress if e.g. `0` doesn't shortcut
 anymore...

 However, I'd rather expect this to be fixed in the `Num` instance rather
 than crippling `integer-gmp`

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10691#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list