Fix naturalToFloat/Double

Closed Sylvain Henry requested to merge hsyl20/ghc:hsyl20/bignum-natural-to-float into master

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