[Haskell-cafe] Looking for pointfree version
Conal Elliott
conal at conal.net
Sun Feb 15 23:00:03 EST 2009
And then to
down = mconcat [downPar, downNew, downTrans]
Which is pretty cute considering that the original formulation is equivalent
to and a tiny tweak away from
down p = mconcat [downPar p, downNew p, downTrans p]
Hooray for Monoid!
- Conal
On Mon, Feb 9, 2009 at 6:31 AM, Wouter Swierstra <wss at cs.nott.ac.uk> wrote:
> > snip
>
> How about using Data.Monoid:
>
> down = downPar `mappend` downNew `mappend` downTrans
>
> Wouter
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090215/2ca711fc/attachment.htm
More information about the Haskell-Cafe
mailing list