Writer.Core_over_monad
module Monad : Preface_specs.MONAD
module Tape : Preface_specs.MONOID
type tape = Tape.t
The encapsulated tape.
type 'a monad = 'a Monad.t
The inner monad.
tell
helps to enrich the output. This is done thanks to the semigroup combine operation.
listen
executes the effect and return both the result and the corresponding output within the effect.
Performs the action and adds the result of applying the function to the output to the value of the computation.
pass
executes the effect and apply the function to the corresponding output.