std.effect.writer
Implementation of the Writer
effect
Types
The Writer
effect allows the computations to output values of type s
Values
Outputs s
let run_writer eff : forall a r .
forall s .
[Monoid s]
-> Eff [| writer : Writer s | r |] a
-> Eff [| | r |] { value : a, writer : s }
Eliminates Writer
, returning the output and computed value. Each output through tell
are
joined via its Monoid
instance