All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scalaz.syntax.WriterOps.scala Maven / Gradle / Ivy

The newest version!
package scalaz
package syntax

final class WriterOps[A](val self: A) extends AnyVal {
  def set[W](w: W): Writer[W, A] = WriterT.writer(w -> self)

  def tell: Writer[A, Unit] = WriterT.tell(self)
}

trait ToWriterOps {
  implicit def ToWriterOps[A](a: A) = new WriterOps(a)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy