[containers] Proposal: Change to the Data.Map Monoid
Joachim Breitner
mail at joachim-breitner.de
Tue May 20 22:10:06 UTC 2014
Hi,
Am Dienstag, den 20.05.2014, 17:47 -0400 schrieb Edward Kmett:
> -1 from me as well, though it is a much softer -1 than on the just breaking everyone silently by changing it.
>
> _Lots_ of users initialize empty maps with mempty
no problem, let’s replace it with
instance (Ord k) => Monoid (Map k v) where
mempty = empty
mappend = error "do not use Monoid (Map k v), it is ambiguous"
Greetings,
Joachim
PS: No, I’m not serious.
--
Joachim “nomeata” Breitner
mail at joachim-breitner.de • http://www.joachim-breitner.de/
Jabber: nomeata at joachim-breitner.de • GPG-Key: 0xF0FBF51F
Debian Developer: nomeata at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://www.haskell.org/pipermail/libraries/attachments/20140521/2599ad52/attachment-0001.sig>
More information about the Libraries
mailing list