That sounds reasonable.
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