[Haskell-cafe] \_ -> not equivalent to const $
asviraspossible at gmail.com
Thu Jan 10 18:33:54 EST 2008
On Jan 11, 2008 2:28 AM, Felipe Lessa <felipe.lessa at gmail.com> wrote:
> On Jan 10, 2008 9:20 PM, Luke Palmer <lrpalmer at gmail.com> wrote:
> > Ahh, it was ghc 6.8.1, without any optimization. If I turn on optimization,
> > the behavior goes away, and they both behave like the const version.
> That was what I suggested on the last line of my previous e-mail. As
> const is in Prelude, which probably was compiled with optimizations,
> it would explain the difference.
Optimization of const doesn't affect this program behavior.
More information about the Haskell-Cafe