diff options
Diffstat (limited to 'src/Data/Monoid/Extra.hs')
-rw-r--r-- | src/Data/Monoid/Extra.hs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Data/Monoid/Extra.hs b/src/Data/Monoid/Extra.hs new file mode 100644 index 0000000..e484cf0 --- /dev/null +++ b/src/Data/Monoid/Extra.hs @@ -0,0 +1,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 |