@hackage fast-math0.1

Non IEEE-754 compliant compile-time floating-point optimisations

The Numeric.FastMath module brings into scope RULES for Floats and Doubles that rewrite x-x, 0*x and x*0 to 0. This disagrees with IEEE-754 when x is NaN, but is acceptable for most applications.

Importing Numeric.FastMath.Infinitesimal also rewrites 0/x to 0.

Optimisation (at least -O1) must be enabled for any RULES to take effect.