Writer
Types
Type Classes
Methods
tellW :: w -> m ()
listenW :: (m a) -> m (a, w)
passW :: (m (a, w -> w)) -> m a
Class for monads that can write.
Functions
Run a Writer.
Run and return only the output.
Map both the return value and output.
Run and return only the output.
Map the inner computation.
O(1). Produce output without a result value.
O(1). Execute a computation and collect its output.
O(1). Execute a computation that can transform its output.
O(1). Execute and apply a function to the output.
O(1). Transform the output of a computation.
O(1). Create a writer from a result and output pair.