writer package:rio
writer (a,w) embeds a simple writer action.
Provides reexports of MonadWriter and related helpers.
A writer monad parameterized by the type
w of output to
accumulate.
The
return function produces the output
mempty, while
>>= combines the outputs of the subcomputations using
mappend.
A writer monad parameterized by:
- w - the output to accumulate.
- m - The inner monad.
The
return function produces the output
mempty, while
>>= combines the outputs of the subcomputations using
mappend.
Environment values with writing capabilities to SomeRef
Extract the output from a writer computation.
Extract the output from a writer computation.
Map both the return value and output of a computation using the given
function.
Map both the return value and output of a computation using the given
function.
Unwrap a writer computation as a (result, output) pair. (The inverse
of
writer.)