Skip to content

Division fails fast for `divMod` \w integer-simple

Alec Theriault requested to merge harpocrates/ghc:T16091 into master

We want Natural to match the behaviour of Integer as well as Integer/Natural from integer-gmp, namely to have

 divMod x 0 = _|_

not

 divMod x 0 = (_|_, _|_)

See #16091 (closed) for an example of where this matters.

Edited by Alec Theriault

Merge request reports