m :+: n is the coproduct of monoids m and n. Values of
type m :+: n consist of alternating lists of m and n
values. The empty list is the identity, and composition is list
concatenation, with appropriate combining of adjacent elements
when possible.
Instances4Show, Semigroup, Monoid, Action
(Show m, Show n) => Show (m :+: n)Defined in monoid-extras-0.6.2 · Data.Monoid.CoproductSemigroup (m :+: n)Defined in monoid-extras-0.6.2 · Data.Monoid.CoproductMonoid (m :+: n)Defined in monoid-extras-0.6.2 · Data.Monoid.CoproductThe coproduct of two monoids is itself a monoid.
(Action m r, Action n r) => Action (m :+: n) rDefined in monoid-extras-0.6.2 · Data.Monoid.CoproductCoproducts act on other things by having each of the components act individually.