Module

Data.Monoid.Alternate

Package
purescript-control
Repository
purescript/purescript-control

#Alternate Source

newtype Alternate :: forall k. (k -> Type) -> k -> Typenewtype Alternate f a

Monoid and semigroup instances corresponding to Plus and Alt instances for f

Alternate fx <> Alternate fy == Alternate (fx <|> fy)
mempty :: Alternate _ == Alternate empty

Constructors

Instances