AssociativeBothDeriveEqualInvariant

zio.prelude.coherent.AssociativeBothDeriveEqualInvariant
See theAssociativeBothDeriveEqualInvariant companion object

Attributes

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

Members list

Value members

Inherited methods

def both[A, B](fa: => F[A], fb: => F[B]): F[(A, B)]

Combines two values of types F[A] and F[B] to produce an F[(A, B)].

Combines two values of types F[A] and F[B] to produce an F[(A, B)].

Attributes

Inherited from:
AssociativeBoth
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 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
def invmap[A, B](f: Equivalence[A, B]): Equivalence[F[A], F[B]]

Attributes

Inherited from:
Invariant