summaryrefslogtreecommitdiffstats
path: root/src/Data/Monoid/Extra.hs
blob: e484cf06554f8662d39c007c0f7aabffa59bbee6 (plain)
1
2
3
4
5
6
module Data.Monoid.Extra where


mintercalate :: Monoid b => b -> [b] -> b
mintercalate c (h:t) = foldl (\acc x -> acc <> c <> x) h t
mintercalate _ [] = mempty