org.atnos.eff.WriterEffect
See theWriterEffect companion object
trait WriterEffect extends WriterCreation, WriterInterpretation
Effect for logging values alongside computations
Compared to traditional Writer monad which accumulates values by default this effect can be interpreted in different ways:
- log values to the console or to a file as soon as they are produced
- accumulate values in a list
Attributes
- Companion
- object
- Source
- WriterEffect.scala
- Graph
-
- Supertypes
- Known subtypes
-
object WriterEffect
Members list
Value members
Inherited methods
Attributes
- Inherited from:
- WriterInterpretation
- Source
- WriterInterpretation.scala
Attributes
- Inherited from:
- WriterInterpretation
- Source
- WriterInterpretation.scala
Attributes
- Inherited from:
- WriterInterpretation
- Source
- WriterInterpretation.scala
run a writer effect and return the list of written values
run a writer effect and return the list of written values
This uses a ListBuffer internally to append values
Attributes
- Inherited from:
- WriterInterpretation
- Source
- WriterInterpretation.scala
Attributes
- Inherited from:
- WriterInterpretation
- Source
- WriterInterpretation.scala
More general fold of runWriter where we can use a fold to accumulate values in a mutable buffer
More general fold of runWriter where we can use a fold to accumulate values in a mutable buffer
Attributes
- Inherited from:
- WriterInterpretation
- Source
- WriterInterpretation.scala
Attributes
- Inherited from:
- WriterInterpretation
- Source
- WriterInterpretation.scala
Attributes
- Inherited from:
- WriterInterpretation
- Source
- WriterInterpretation.scala
Run a side-effecting fold
Run a side-effecting fold
Attributes
- Inherited from:
- WriterInterpretation
- Source
- WriterInterpretation.scala
write a given value
Implicits
Inherited implicits
Attributes
- Inherited from:
- WriterInterpretation
- Source
- WriterInterpretation.scala
In this article