monoid-transformer-0.0.4: Monoid counterparts to some ubiquitous monad transformers

Safe HaskellSafe
LanguageHaskell98

Data.Monoid.Applicative

Synopsis

Documentation

newtype T f a Source #

Sequence applicative functors and combine their functorial results with mappend.

Constructors

Cons 

Fields

Instances

Applicative f => C (T f) Source # 

Methods

lift :: Monoid m => m -> T f m Source #

(Applicative f, Semigroup a) => Semigroup (T f a) Source # 

Methods

(<>) :: T f a -> T f a -> T f a #

sconcat :: NonEmpty (T f a) -> T f a #

stimes :: Integral b => b -> T f a -> T f a #

(Applicative f, Monoid a) => Monoid (T f a) Source # 

Methods

mempty :: T f a #

mappend :: T f a -> T f a -> T f a #

mconcat :: [T f a] -> T f a #