[project @ 2003-04-01 09:35:13 by simonmar]
authorsimonmar <unknown>
Tue, 1 Apr 2003 09:35:13 +0000 (09:35 +0000)
committersimonmar <unknown>
Tue, 1 Apr 2003 09:35:13 +0000 (09:35 +0000)
commit999f8cf9b4b8e39dc33d30de5b4478d52e3fe783
tree300c24409ff3d6a19d1e0b92c3a8e5a6c418e476
parentf74458a707d766e7b9b04db7d27cb3f697100e4f
[project @ 2003-04-01 09:35:13 by simonmar]
Don't constant-fold (negateFloat# 0.0#), because the compiler's
internal representation of floating-point literals (Rational) can't
represent -0.0.  This means that

   main = print (-0.0)

now gives the same results with -O as it does without.

Fixes test arith005.
ghc/compiler/prelude/PrelRules.lhs