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 <[email protected]> wrote:
> > snip
>
> How about using Data.Monoid:
>
> down = downPar `mappend` downNew `mappend` downTrans
>
> Wouter
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe