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

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

package scalaz
package syntax

final class WriterOps[A](private 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): WriterOps[A] = new WriterOps(a)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy