PSetter

monocle.PSetter$
See thePSetter companion trait
object PSetter extends SetterInstances

Attributes

Companion:
trait
Source:
Setter.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
PSetter.type

Members list

Concise view

Value members

Concrete methods

def apply[S, T, A, B](_modify: (A => B) => S => T): PSetter[S, T, A, B]

create a PSetter using modify function

create a PSetter using modify function

Attributes

Source:
Setter.scala
def fromContravariant[F[_], A, B](implicit F: Contravariant[F]): PSetter[F[B], F[A], A, B]

create a PSetter from a Contravariant functor

create a PSetter from a Contravariant functor

Attributes

Source:
Setter.scala
def fromFunctor[F[_], A, B](implicit F: Functor[F]): PSetter[F[A], F[B], A, B]

create a PSetter from a cats.Functor

create a PSetter from a cats.Functor

Attributes

Source:
Setter.scala
def fromProfunctor[P[_, _], A, B, C](implicit P: Profunctor[P]): PSetter[P[B, C], P[A, C], A, B]

create a PSetter from a Profunctor

create a PSetter from a Profunctor

Attributes

Source:
Setter.scala

Deprecated methods

def codiagonal[S, T]: PSetter[Either[S, S], Either[T, T], S, T]

Attributes

Deprecated
[Since version 3.0.0-M4]
Source:
Setter.scala
def id[S, T]: PSetter[S, T, S, T]

Attributes

Deprecated
[Since version 3.0.0-M2]
Source:
Setter.scala

Implicits

Implicits

implicit def pSetterSyntax[S, T, A, B](self: PSetter[S, T, A, B]): PSetterSyntax[S, T, A, B]

Attributes

Source:
Setter.scala
implicit def setterSyntax[S, A](self: Setter[S, A]): SetterSyntax[S, A]

Attributes

Source:
Setter.scala

Inherited implicits

implicit val SetterChoice: Choice[Setter]

Attributes

Inherited from:
SetterInstances
Source:
Setter.scala