snoyberg/conduit — pull request #66 by NathanHowell (2012-08-20 16:26:32+00:00)
Title: Add foldMap sink

I added an implementation of `Data.Foldable.foldMap` to `Data.Conduit.List`. It builds on the existing `foldl` function but is specialized for Monoids.

*Data.Conduit.List Data.Monoid> sourceList [1..10] $$ foldMap Sum
Sum {getSum = 55}
*Data.Conduit.List Data.Monoid> sourceList [1..10] $$ foldMap Product
Product {getProduct = 3628800}