Module Control.Monad.Trans.Writer

Summary of exported operations:

writer :: Monad a => (b,c) -> WriterT c a b  Deterministic 
tell :: Monad a => b -> WriterT b a ()  Deterministic 
listen :: Monad a => WriterT b a c -> WriterT b a (c,b)  Deterministic 
execWriterT :: Monad a => WriterT b a c -> a b  Deterministic 
runWriter :: WriterT a Identity b -> (b,a)  Deterministic 
execWriter :: WriterT a Identity b -> a  Deterministic 

Exported datatypes:


newtype WriterT

Constructor:

  • WriterT :: (b (c,a)) -> WriterT a b c

    Fields:

    • runWriterT :: (b (c,a))

Writer

Type synonym: Writer a = WriterT a Identity


Exported operations:

writer :: Monad a => (b,c) -> WriterT c a b  Deterministic 

tell :: Monad a => b -> WriterT b a ()  Deterministic 

listen :: Monad a => WriterT b a c -> WriterT b a (c,b)  Deterministic 

execWriterT :: Monad a => WriterT b a c -> a b  Deterministic 

runWriter :: WriterT a Identity b -> (b,a)  Deterministic 

execWriter :: WriterT a Identity b -> a  Deterministic