That sounds reasonable.

On Aug 31, 2015 1:54 PM, "Fermin Reig" <ferminreig@fastmail.fm> wrote:
We could generalise:

mconcat:: [a] -> a
mconcat = foldr mappend memtpy

to:

mconcat:: Foldable t => t a -> a
mconcat = foldr mappend memtpy
-- even
-- mconcat = fold


Fermin

PS: I cannot find a proposal for this in the archives, apologies if it's been raised before and I missed it.
_______________________________________________
Libraries mailing list
Libraries@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries