Skip to content

Fix Integral instances for Words (#19026)

Sylvain Henry requested to merge hsyl20/ghc:hsyl20/quotremword into master
  • ensure that division wrappers are INLINE

  • make div/mod/divMod call quot/rem/quotRem (same code)

  • this ensures that the quotRemWordN# primitive is used to implement divMod (it wasn't the case for sized Words)

  • make first argument strict for Natural and Integer (similarly to other numeric types)

Edited by Sylvain Henry

Merge request reports