[Haskell-cafe] Newbie: State monad example questions

Olivier Boudry olivier.boudry at gmail.com
Sat May 24 07:39:37 EDT 2008


On Sat, May 24, 2008 at 3:39 AM, Bulat Ziganshin <bulat.ziganshin at gmail.com>
wrote:

> Hello Olivier,
>
> Saturday, May 24, 2008, 5:37:32 AM, you wrote:
>
> (|>>) = flip (.)
>
> > I even started to use it in my code and then stopped. It may be a
> > stupid concern but as many optimizations performed by GHC are made
> > through rewrite rules and I was worried that those rules may not
> > fire when using this new operator.
>
> afaik ghc, |> would be rewritten to flip (.) which would be rewritten
> to application of first function to second one and so on. rewrite
> rules doesn't work only on your original code but on intermediate
> variations too
>
> That's really good news.

Thanks Bulat,

Olivier.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080524/4b956e0f/attachment.htm


More information about the Haskell-Cafe mailing list