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

Safe HaskellSafe
LanguageHaskell98

Data.Monoid.Reader

Synopsis

Documentation

newtype T r a Source #

Could also be written as Monoid.Applicative (Monad.Trans.Reader r) a.

Constructors

Cons 

Fields

  • run :: r -> a
     

Instances

Functor (T r) Source # 

Methods

fmap :: (a -> b) -> T r a -> T r b #

(<$) :: a -> T r b -> T r a #

C (T r) Source # 

Methods

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

Semigroup a => Semigroup (T r a) Source # 

Methods

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

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

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

Monoid a => Monoid (T r a) Source # 

Methods

mempty :: T r a #

mappend :: T r a -> T r a -> T r a #

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

pure :: a -> T r a Source #