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
and removing identities when possible.
Instances5Eq, Show, Semigroup, Monoid, Action
(Eq m, Eq n, Monoid m, Monoid n) => Eq (m :+: n)Defined in monoid-extras-0.7.0.2 · Data.Monoid.Coproduct(Show m, Show n) => Show (m :+: n)Defined in monoid-extras-0.7.0.2 · Data.Monoid.CoproductSemigroup (m :+: n)Defined in monoid-extras-0.7.0.2 · Data.Monoid.CoproductMonoid (m :+: n)Defined in monoid-extras-0.7.0.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.7.0.2 · Data.Monoid.CoproductCoproducts act on other things by having each of the components act individually.