Incorrect *if* the semantics distinguishes between () and _|_ (as apparently is the choice in Haskell).
Thomas Davie wrote:No. "Optimizing them down to ()" changes the semantics of the computation. This is incorrect behavior.
the only change is that computations resulting in the
unit type *can't* non terminate, because we can always optimize them down to ().
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe