cats.laws

ComonadLaws

trait ComonadLaws[F[_]] extends CoflatMapLaws[F]

Laws that must be obeyed by any Comonad.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ComonadLaws
  2. CoflatMapLaws
  3. FunctorLaws
  4. InvariantLaws
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. implicit abstract def F: Comonad[F]

    Definition Classes
    ComonadLawsCoflatMapLawsFunctorLawsInvariantLaws

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def coflatMapAssociativity[A, B, C](fa: F[A], f: (F[A]) ⇒ B, g: (F[B]) ⇒ C): IsEq[F[C]]

    Definition Classes
    CoflatMapLaws
  9. def coflatMapIdentity[A, B](fa: F[A]): IsEq[F[F[A]]]

    Definition Classes
    CoflatMapLaws
  10. def coflattenCoherence[A, B](fa: F[A], f: (F[A]) ⇒ B): IsEq[F[B]]

    Definition Classes
    CoflatMapLaws
  11. def coflattenThroughMap[A](fa: F[A]): IsEq[F[F[F[A]]]]

    Definition Classes
    CoflatMapLaws
  12. def cokleisliAssociativity[A, B, C, D](f: (F[A]) ⇒ B, g: (F[B]) ⇒ C, h: (F[C]) ⇒ D, fa: F[A]): IsEq[D]

    The composition of cats.data.Cokleisli arrows is associative.

    The composition of cats.data.Cokleisli arrows is associative. This is analogous to coflatMapAssociativity.

    Definition Classes
    CoflatMapLaws
  13. def cokleisliLeftIdentity[A, B](fa: F[A], f: (F[A]) ⇒ B): IsEq[B]

    extract is the left identity element under left-to-right composition of cats.data.Cokleisli arrows.

    extract is the left identity element under left-to-right composition of cats.data.Cokleisli arrows. This is analogous to comonadLeftIdentity.

  14. def cokleisliRightIdentity[A, B](fa: F[A], f: (F[A]) ⇒ B): IsEq[B]

    extract is the right identity element under left-to-right composition of cats.data.Cokleisli arrows.

    extract is the right identity element under left-to-right composition of cats.data.Cokleisli arrows. This is analogous to comonadRightIdentity.

  15. def comonadLeftIdentity[A](fa: F[A]): IsEq[F[A]]

  16. def comonadRightIdentity[A, B](fa: F[A], f: (F[A]) ⇒ B): IsEq[B]

  17. def covariantComposition[A, B, C](fa: F[A], f: (A) ⇒ B, g: (B) ⇒ C): IsEq[F[C]]

    Definition Classes
    FunctorLaws
  18. def covariantIdentity[A](fa: F[A]): IsEq[F[A]]

    Definition Classes
    FunctorLaws
  19. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  21. def extractCoflattenIdentity[A](fa: F[A]): IsEq[F[A]]

  22. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  24. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  25. def invariantComposition[A, B, C](fa: F[A], f1: (A) ⇒ B, f2: (B) ⇒ A, g1: (B) ⇒ C, g2: (C) ⇒ B): IsEq[F[C]]

    Definition Classes
    InvariantLaws
  26. def invariantIdentity[A](fa: F[A]): IsEq[F[A]]

    Definition Classes
    InvariantLaws
  27. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  28. def mapCoflatMapCoherence[A, B](fa: F[A], f: (A) ⇒ B): IsEq[F[B]]

  29. def mapCoflattenIdentity[A](fa: F[A]): IsEq[F[A]]

  30. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  31. final def notify(): Unit

    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  34. def toString(): String

    Definition Classes
    AnyRef → Any
  35. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from CoflatMapLaws[F]

Inherited from FunctorLaws[F]

Inherited from InvariantLaws[F]

Inherited from AnyRef

Inherited from Any

Ungrouped