Proposal: generalise Monoid's mconcat

Evan Laforge qdunkan at gmail.com
Tue Sep 1 15:09:35 UTC 2015


On Tue, Sep 1, 2015 at 3:39 AM, Fumiaki Kinoshita <fumiexcel at gmail.com>
wrote:

> I would rather propose removing mconcat from Monoid. I've never seen
> mconcat defined.
>

I define mconcat all the time.  For example, for appending computations you
can fork based on the number of elements, or thread state differently.  And
not just me, array libraries like Data.Vector, ByteString, Text, and I
expect Data.Array use it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20150901/2f503529/attachment.html>


More information about the Libraries mailing list