On Jan 10, 2008 11:15 PM, Victor Nazarov <[EMAIL PROTECTED]> wrote: > On Jan 11, 2008 2:11 AM, Felipe Lessa <[EMAIL PROTECTED]> wrote: > > On Jan 10, 2008 8:54 PM, Luke Palmer <[EMAIL PROTECTED]> wrote: > > > Can someone explain what the heck is going on here? > > > > AFAICT, nothing is wrong. You see, both returned the very same values. > [snip] > > But referential transparency wasn't broken at all =). > > > Referential transparency wasn't broken, but I wonder what was the > compiler, and what were it's options.
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. Darn. Luke > -- > vir > http://vir.comtv.ru/ > _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe