[containers] Proposal: Change to the Data.Map Monoid

Henning Thielemann schlepptop at henning-thielemann.de
Mon May 19 05:05:52 UTC 2014


Am 19.05.2014 02:05, schrieb Nick Partridge:

> instance Monoid v => Monoid (Map k v) where
>      mappend = unionWith mappend
>
> This lets us build up maps with values in a useful Monoid, and mappend
> them with gusto.

This was discussed two years ago:
   http://www.haskell.org/pipermail/libraries/2012-April/017743.html

That said, I'd also prefer your instance.



More information about the Libraries mailing list