control v0.1.0 Data.Writer

The Data.Writer type encapsulates a values with an attached, secondary value that acts like a log.

Data.Writer allows for computations while making sure that all the log values are combined into one log value that then gets attached to the result.

Link to this section Summary

Functions

The log (“tell”) helper

The value constructor

Link to this section Types

Link to this type t()
t() :: %Data.Writer{log: [], value: nil}

Link to this section Functions

Link to this function log(writer, log)

The log (“tell”) helper.

The value constructor.