org.atnos.eff.WriterCreation.scala Maven / Gradle / Ivy
The newest version!
package org.atnos.eff
import cats._
import data._
import Eff._
trait WriterCreation {
/** write a given value */
def tell[R, O](o: O)(implicit member: Writer[O, *] |= R): Eff[R, Unit] =
send[Writer[O, *], R, Unit](Writer(o, ()))
}
object WriterCreation extends WriterCreation