ether-0.4.2.0: Monad transformers and classes

Safe HaskellNone
LanguageHaskell2010

Control.Monad.Ether.Implicit.Writer

Contents

Description

Synopsis

MonadWriter class

writer :: forall w m a. MonadWriter w m => (a, w) -> m a Source #

See writer.

tell :: forall w m. MonadWriter w m => w -> m () Source #

See tell.

listen :: forall w m a. MonadWriter w m => m a -> m (a, w) Source #

See listen.

pass :: forall w m a. MonadWriter w m => m (a, w -> w) -> m a Source #

See pass.

listens :: forall w m a b. MonadWriter w m => (w -> b) -> m a -> m (a, b) Source #

See listens.

censor :: forall w m a. MonadWriter w m => (w -> w) -> m a -> m a Source #

See censor.

The Writer monad

type Writer w = Writer w w Source #

See Writer.

runWriter :: Writer w a -> (a, w) Source #

The WriterT monad transformer

type WriterT w = WriterT w w Source #

See WriterT.

writerT :: m (a, w) -> WriterT w m a Source #

See writerT.

runWriterT :: WriterT w m a -> m (a, w) Source #

execWriterT :: Monad m => WriterT w m a -> m w Source #