Monoid.md

May 18, 2018 ยท View on GitHub

Module Elm.Monoid

Elm modules sometimes define a none function that corresponds to Purescript's mempty, and a batch function that corresponds to Purescript's fold. So, we re-export these here with the Elm-ish names.

batch

batch :: forall f m. Foldable f => Monoid m => f m -> m

Smush together a bunch of things.

Equivalent to Purescript's fold

none

none :: forall m. Monoid m => m

Produce an "empty" value of the relevant type.

Equivalent to Purescript's mempty.