Skip to content

certain operations in new integer-gmp are too lazy

This came up in #ghc the other day.

rwbarton@morphism:~$ ghci-7.10.1
GHCi, version 7.10.1: http://www.haskell.org/ghc/  :? for help
Prelude> undefined * 0
0

For consistency not just with Int, but also other integer-* implementations, this should be undefined.

Also affected is for example andInteger.

Edited by Ben Gamari
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information