mtl-c-0: Monad transformers using continuation passing style

Safe HaskellTrustworthy
LanguageHaskell98

Control.Monad.Writer.CPS

Documentation

newtype WriterT w m a Source

Constructors

WriterT 

Fields

unWriterT :: forall r. (a -> w -> m r) -> m r
 

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

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

mapWriterT :: (Monad m, Monad n) => (m (a, w) -> n (b, w)) -> WriterT w m a -> WriterT w n b Source

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