WriterInterpretation

Companion:
object
Source:
WriterEffect.scala
class Object
trait Matchable
class Any
object WriterEffect.type
object all.type
object writer.type

Value members

Concrete methods

def EvalFold[A](f: A => Eval[Unit]): RightFold[A, Eval[Unit]]
def IntoMonoidFold[M : Monoid, A](f: A => M): RightFold[A, M]
def runWriter[R, U, O, A, B](w: Eff[R, A])(implicit m: Aux[[_] =>> Writer[O, _$3], R, U]): Eff[U, (A, List[O])]

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

Source:
WriterEffect.scala
def runWriterEval[R, U, O, A](w: Eff[R, A])(f: O => Eval[Unit])(implicit m: Aux[[_] =>> Writer[O, _$10], R, U], ev: MemberIn[Eval, U]): Eff[U, A]
def runWriterFold[R, U, O, A, B](w: Eff[R, A])(fold: RightFold[O, B])(implicit m: Aux[[_] =>> Writer[O, _$4], R, U]): Eff[U, (A, B)]

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

Source:
WriterEffect.scala
def runWriterIntoMonoid[R, U, O, M, A](w: Eff[R, A])(f: O => M)(implicit m: Aux[[_] =>> Writer[O, _$12], R, U], M: Monoid[M]): Eff[U, (A, M)]
def runWriterMonoid[R, U, O, A](w: Eff[R, A])(implicit m: Aux[[_] =>> Writer[O, _$11], R, U], O: Monoid[O]): Eff[U, (A, O)]
def runWriterUnsafe[R, U, O, A](w: Eff[R, A])(f: O => Unit)(implicit m: Aux[[_] =>> Writer[O, _$7], R, U]): Eff[U, A]

Run a side-effecting fold

Run a side-effecting fold

Source:
WriterEffect.scala

Implicits

Implicits

implicit def ListFold[A]: RightFold[A, List[A]]