Proposal #3339: Add (+>) as a synonym for mappend

Bryan O'Sullivan bos at
Tue Jun 30 17:37:51 EDT 2009


>From the ticket:

This proposal was, I think, originally suggested by Jules Bean. The idea is
to add two functions to the Data.Monoid module, (+>) and (<+), corresponding
to different uses of mappend. These should not be methods of the
Monoidtypeclass, but top-level functions.

I hope (but slightly doubt) that the visual nature of the two operators
might help to counter the thought that monoids are just for gluing things

(+>) :: (Monoid a) => a -> a -> a
a +> b = a `mappend` b

(<+) :: (Monoid a) => a -> a -> a
a <+ b = b `mappend` a

infixl 4 +>
infixl 4 <+

Proposed deadline: two weeks.

If this looks reasonable, I'll attach darcs patches.
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the Libraries mailing list