Effects.Writer
Description
Writer effect.
data Writer w a where Source #
Writer effect for writing to a strean w
w
Constructors
Write to a stream w
Fields
value to write
tell :: Member (Writer w) es => w -> Prog es () Source #
Wrapper for Tell
Tell
tellM :: Member (Writer w) es => w -> Model env es () Source #
Wrapper for Tell inside Model
Model
handleWriter Source #
Arguments
(output, final stream)
Handle the Writer effect for a stream w
Writer
handleWriterM Source #
Handle the Writer effect inside a Model