ContravariantDeriveEqual

zio.prelude.coherent.ContravariantDeriveEqual
See theContravariantDeriveEqual companion object

Attributes

Companion
object
Graph
Supertypes
trait Derive[F, Equal]
trait Contravariant[F]
trait Invariant[F]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

final def compose[G[_]](implicit g: Covariant[G]): Contravariant[{ type lambda = [A] =>> F[G[A]]; }#<none>]

Compose contravariant and covariant functors.

Compose contravariant and covariant functors.

Attributes

Inherited from:
Contravariant
final def compose[G[_]](implicit g: Contravariant[G]): Covariant[{ type lambda = [A] =>> F[G[A]]; }#<none>]

Compose two contravariant functors.

Compose two contravariant functors.

Attributes

Inherited from:
Contravariant
final def compose[G[_]](implicit g: Invariant[G]): Invariant[{ type lambda = [A] =>> F[G[A]]; }#<none>]

Compose two invariant functors.

Compose two invariant functors.

Attributes

Inherited from:
Invariant
def compositionLaw[A, B, C](fa: F[A], f: Equivalence[A, B], g: Equivalence[B, C])(implicit equal: Equal[F[C]]): Boolean

Attributes

Inherited from:
Invariant
def contramap[A, B](f: B => A): (F[A]) => F[B]

Lift a function from B to A to a function from F[A] to F[B].

Lift a function from B to A to a function from F[A] to F[B].

Attributes

Inherited from:
Contravariant
final def contramapSubset[A, B : AnyType](f: B => A): (F[A]) => F[B]

Attributes

Inherited from:
Contravariant
def derive[A : Equal]: Equal[F[A]]

Attributes

Inherited from:
Derive
def identityLaw1[A](fa: F[A])(implicit equal: Equal[F[A]]): Boolean

Attributes

Inherited from:
Invariant
final def invmap[A, B](f: Equivalence[A, B]): Equivalence[F[A], F[B]]

Attributes

Inherited from:
Contravariant