I have implemented a function mcollect which is effectively mconcat only for applicative monoids:
mcollect
:: Applicative f
=> Monoid (f a)
=> [a]
-> f a
mcollect = mconcat . fmap pure
However I am not overly keen on the name mcollect, an alternative name in the spirit of mconcat is amconcat which I am not keen on either. Looking on Hoogle there does not appear to be anything like this in any libraries, that I can find. Does something like this exist somewhere already, I've just missed it? Is there a better name for this function?
Apas already supported bymconcatis not sufficient for your purposes? \$\endgroup\$