Trait/Object

cats.laws

ArrowChoiceLaws

Related Docs: object ArrowChoiceLaws | package laws

Permalink

trait ArrowChoiceLaws[F[_, _]] extends ArrowLaws[F] with ChoiceLaws[F]

Laws that must be obeyed by any cats.arrow.ArrowChoice.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ArrowChoiceLaws
  2. ChoiceLaws
  3. ArrowLaws
  4. StrongLaws
  5. ProfunctorLaws
  6. CategoryLaws
  7. ComposeLaws
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. implicit abstract def F: ArrowChoice[F]

    Permalink
  2. implicit abstract def Function: ArrowChoice[Function1]

    Permalink

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def arrowAssociation[A, B, C, D](f: F[A, B]): IsEq[F[((A, C), D), (B, (C, D))]]

    Permalink
    Definition Classes
    ArrowLaws
  5. def arrowComposition[A, B, C](f: (A) ⇒ B, g: (B) ⇒ C): IsEq[F[A, C]]

    Permalink
    Definition Classes
    ArrowLaws
  6. def arrowExchange[A, B, C, D](f: F[A, B], g: (C) ⇒ D): IsEq[F[(A, C), (B, D)]]

    Permalink
    Definition Classes
    ArrowLaws
  7. def arrowExtension[A, B, C](g: (A) ⇒ B): IsEq[F[(A, C), (B, C)]]

    Permalink
    Definition Classes
    ArrowLaws
  8. def arrowFunctor[A, B, C, D](f: F[A, B], g: F[B, C]): IsEq[F[(A, D), (C, D)]]

    Permalink
    Definition Classes
    ArrowLaws
  9. def arrowIdentity[A]: IsEq[F[A, A]]

    Permalink
    Definition Classes
    ArrowLaws
  10. def arrowUnit[A, B, C](f: F[A, B]): IsEq[F[(A, C), B]]

    Permalink
    Definition Classes
    ArrowLaws
  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. def categoryLeftIdentity[A, B](f: F[A, B]): IsEq[F[A, B]]

    Permalink
    Definition Classes
    CategoryLaws
  13. def categoryRightIdentity[A, B](f: F[A, B]): IsEq[F[A, B]]

    Permalink
    Definition Classes
    CategoryLaws
  14. def choiceCompositionDistributivity[A, B, C, D](fac: F[A, C], fbc: F[B, C], fcd: F[C, D]): IsEq[F[Either[A, B], D]]

    Permalink
    Definition Classes
    ChoiceLaws
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def composeAssociativity[A, B, C, D](fab: F[A, B], fbc: F[B, C], fcd: F[C, D]): IsEq[F[A, D]]

    Permalink
    Definition Classes
    ComposeLaws
  17. def dinaturalityFirst[A, B, C, D](fab: F[A, B], f: (C) ⇒ D): IsEq[F[(A, C), (B, D)]]

    Permalink

    lmap (second f) .

    lmap (second f) . first == rmap (second f) . first

    Definition Classes
    StrongLaws
  18. def dinaturalitySecond[A, B, C, D](fab: F[A, B], f: (C) ⇒ D): IsEq[F[(C, A), (D, B)]]

    Permalink

    lmap (first f) .

    lmap (first f) . second == rmap (first f) . second

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  21. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. def firstFirstIsDimap[A, B, C, D](fab: F[A, B]): IsEq[F[((A, C), D), ((B, C), D)]]

    Permalink

    first' .

    first' . first' == dimap assoc unassoc . first' where assoc ((a,b),c) = (a,(b,c)) unassoc (a,(b,c)) = ((a,b),c)

    Definition Classes
    StrongLaws
  23. def firstIsSwappedSecond[A, B, C](fab: F[A, B]): IsEq[F[(A, C), (B, C)]]

    Permalink

    first' == dimap swap swap .

    first' == dimap swap swap . second'

    Definition Classes
    StrongLaws
  24. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. def leftAndThenLiftedLeftApplyCommutes[A, B, C](f: F[A, B]): IsEq[F[A, Either[B, C]]]

    Permalink
  28. def leftAndThenRightIdentityCommutes[A, B, C, D](f: F[A, B], g: (C) ⇒ D): IsEq[F[Either[A, C], Either[B, D]]]

    Permalink
  29. def leftComposeCommute[A, B, C, D](f: F[A, B], g: F[B, C]): IsEq[F[Either[A, D], Either[C, D]]]

    Permalink
  30. def leftLiftCommute[A, B, C](f: (A) ⇒ B): IsEq[F[Either[A, C], Either[B, C]]]

    Permalink
  31. def leftRightConsistent[A, B, C](f: (A) ⇒ B): IsEq[F[Either[C, A], Either[C, B]]]

    Permalink
  32. def leftTwiceCommutesWithSumAssociation[A, B, C, D](f: F[A, D]): IsEq[F[Either[Either[A, B], C], Either[D, Either[B, C]]]]

    Permalink
  33. def lmapEqualsFirstAndThenRmap[A, B, C](fab: F[A, B]): IsEq[F[(A, C), B]]

    Permalink

    lmap fst == rmap fst .

    lmap fst == rmap fst . first'

    Definition Classes
    StrongLaws
  34. def lmapEqualsSecondAndThenRmap[A, B, C](fab: F[A, B]): IsEq[F[(C, A), B]]

    Permalink

    lmap snd == rmap snd .

    lmap snd == rmap snd . second'

    Definition Classes
    StrongLaws
  35. def mergeConsistentWithAndThen[A, B, C](f: F[A, B], g: F[A, C]): IsEq[F[A, (B, C)]]

    Permalink
    Definition Classes
    ArrowLaws
  36. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  37. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  38. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  39. def profunctorComposition[A2, A1, A0, B0, B1, B2](fab: F[A0, B0], f2: (A2) ⇒ A1, f1: (A1) ⇒ A0, g1: (B0) ⇒ B1, g2: (B1) ⇒ B2): IsEq[F[A2, B2]]

    Permalink
    Definition Classes
    ProfunctorLaws
  40. def profunctorIdentity[A, B](fab: F[A, B]): IsEq[F[A, B]]

    Permalink
    Definition Classes
    ProfunctorLaws
  41. def profunctorLmapComposition[A2, A1, A0, B](fab: F[A0, B], f: (A2) ⇒ A1, g: (A1) ⇒ A0): IsEq[F[A2, B]]

    Permalink
    Definition Classes
    ProfunctorLaws
  42. def profunctorLmapIdentity[A, B](fab: F[A, B]): IsEq[F[A, B]]

    Permalink
    Definition Classes
    ProfunctorLaws
  43. def profunctorRmapComposition[A, B2, B1, B0](fab: F[A, B0], f: (B0) ⇒ B1, g: (B1) ⇒ B2): IsEq[F[A, B2]]

    Permalink
    Definition Classes
    ProfunctorLaws
  44. def profunctorRmapIdentity[A, B](fab: F[A, B]): IsEq[F[A, B]]

    Permalink
    Definition Classes
    ProfunctorLaws
  45. def secondIsSwappedFirst[A, B, C](fab: F[A, B]): IsEq[F[(C, A), (C, B)]]

    Permalink

    second' == dimap swap swap .

    second' == dimap swap swap . first'

    Definition Classes
    StrongLaws
  46. def secondSecondIsDimap[A, B, C, D](fab: F[A, B]): IsEq[F[(D, (C, A)), (D, (C, B))]]

    Permalink

    second' .

    second' . second' == dimap unassoc assoc . second' where assoc ((a,b),c) = (a,(b,c)) unassoc (a,(b,c)) = ((a,b),c)

    Definition Classes
    StrongLaws
  47. def splitConsistentWithAndThen[A, B, C, D](f: F[A, B], g: F[C, D]): IsEq[F[(A, C), (B, D)]]

    Permalink
    Definition Classes
    ArrowLaws
  48. def sumAssoc[A, B, C](e: Either[Either[A, B], C]): Either[A, Either[B, C]]

    Permalink
  49. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  50. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ChoiceLaws[F]

Inherited from ArrowLaws[F]

Inherited from StrongLaws[F]

Inherited from ProfunctorLaws[F]

Inherited from CategoryLaws[F]

Inherited from ComposeLaws[F]

Inherited from AnyRef

Inherited from Any

Ungrouped