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

cats.syntax.writer.scala Maven / Gradle / Ivy

The newest version!
package cats
package syntax

import cats.data.Writer

trait WriterSyntax {
  implicit final def catsSyntaxWriterId[A](a: A): WriterIdSyntax[A] = new WriterIdSyntax(a)
}

final class WriterIdSyntax[A](private val a: A) extends AnyVal {
  def tell: Writer[A, Unit] = Writer(a, ())
  def writer[W](w: W): Writer[W, A] = Writer(w, a)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy