Skip to content

Fix naturalToFloat/Double

Fix naturalToFloat/Double

  • move naturalToFloat/Double from ghc-bignum to base:GHC.Float and make them wired-in (as their integerToFloat/Double counterparts)

  • use the same rounding method as integerToFloat/Double. This is an oversight of 540fa6b2

  • add passthrough rules for intToFloat, intToDouble, wordToFloat, wordToDouble.

#15926 (closed), #17782 (closed)

Merge request reports