When using any of -O, -O1, -O2 with the Debian binary build of GHC 6.6, trace shows that the expression

       if (lr > ll)  then  False else True

is (at least partially) evaluated, but the value returned is always True, even though trace reports that (lr > ll) is True. When I use only the native code generator (without optimization), the correct value (False) is returned.

Further detail and complete code on request.

Best,

Murray Gross
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to