monoid-transformer-0.0.4: Monoid counterparts to some ubiquitous monad transformers
Data.Monoid.MonadicEndo
Synopsis
newtype T m a Source #
Like Data.Monoid.Endo but with monadic result. mempty is return and mappend is <=<.
mempty
return
mappend
<=<
Useful e.g. for handling options with GetOpt.
Constructors
Fields
Instances
Methods
(<>) :: T m a -> T m a -> T m a #
sconcat :: NonEmpty (T m a) -> T m a #
stimes :: Integral b => b -> T m a -> T m a #
mempty :: T m a #
mappend :: T m a -> T m a -> T m a #
mconcat :: [T m a] -> T m a #