Packages

trait MonadErrorLaws[F[_], E] extends ApplicativeErrorLaws[F, E] with MonadLaws[F]

Source
MonadErrorLaws.scala
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MonadErrorLaws
  2. MonadLaws
  3. FlatMapLaws
  4. ApplicativeErrorLaws
  5. ApplicativeLaws
  6. ApplyLaws
  7. SemigroupalLaws
  8. FunctorLaws
  9. InvariantLaws
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. implicit abstract def F: MonadError[F, E]

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def adaptErrorPure[A](a: A, f: (E) => E): IsEq[F[A]]
    Definition Classes
    MonadErrorLawsApplicativeErrorLaws
  5. def adaptErrorRaise[A](e: E, f: (E) => E): IsEq[F[A]]
    Definition Classes
    MonadErrorLawsApplicativeErrorLaws
  6. def apProductConsistent[A, B](fa: F[A], f: F[(A) => B]): IsEq[F[B]]
    Definition Classes
    ApplicativeLaws
  7. def applicativeComposition[A, B, C](fa: F[A], fab: F[(A) => B], fbc: F[(B) => C]): IsEq[F[C]]

    This law is applyComposition stated in terms of pure.

    This law is applyComposition stated in terms of pure. It is a combination of applyComposition and applicativeMap and hence not strictly necessary.

    Definition Classes
    ApplicativeLaws
  8. def applicativeErrorHandle[A](e: E, f: (E) => A): IsEq[F[A]]
    Definition Classes
    ApplicativeErrorLaws
  9. def applicativeErrorHandleWith[A](e: E, f: (E) => F[A]): IsEq[F[A]]
    Definition Classes
    ApplicativeErrorLaws
  10. def applicativeHomomorphism[A, B](a: A, f: (A) => B): IsEq[F[B]]
    Definition Classes
    ApplicativeLaws
  11. def applicativeIdentity[A](fa: F[A]): IsEq[F[A]]
    Definition Classes
    ApplicativeLaws
  12. def applicativeInterchange[A, B](a: A, ff: F[(A) => B]): IsEq[F[B]]
    Definition Classes
    ApplicativeLaws
  13. def applicativeMap[A, B](fa: F[A], f: (A) => B): IsEq[F[B]]
    Definition Classes
    ApplicativeLaws
  14. def applicativeUnit[A](a: A): IsEq[F[A]]
    Definition Classes
    ApplicativeLaws
  15. def applyComposition[A, B, C](fa: F[A], fab: F[(A) => B], fbc: F[(B) => C]): IsEq[F[C]]
    Definition Classes
    ApplyLaws
  16. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  17. def attemptConsistentWithAttemptT[A](fa: F[A]): IsEq[EitherT[F, E, A]]
    Definition Classes
    ApplicativeErrorLaws
  18. def attemptFromEitherConsistentWithPure[A](eab: Either[E, A]): IsEq[F[Either[E, A]]]
    Definition Classes
    ApplicativeErrorLaws
  19. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  20. def covariantComposition[A, B, C](fa: F[A], f: (A) => B, g: (B) => C): IsEq[F[C]]
    Definition Classes
    FunctorLaws
  21. def covariantIdentity[A](fa: F[A]): IsEq[F[A]]
    Definition Classes
    FunctorLaws
  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  24. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  25. def flatMapAssociativity[A, B, C](fa: F[A], f: (A) => F[B], g: (B) => F[C]): IsEq[F[C]]
    Definition Classes
    FlatMapLaws
  26. def flatMapConsistentApply[A, B](fa: F[A], fab: F[(A) => B]): IsEq[F[B]]
    Definition Classes
    FlatMapLaws
  27. def flatMapFromTailRecMConsistency[A, B](fa: F[A], fn: (A) => F[B]): IsEq[F[B]]

    It is possible to implement flatMap from tailRecM and map and it should agree with the flatMap implementation.

    It is possible to implement flatMap from tailRecM and map and it should agree with the flatMap implementation.

    Definition Classes
    FlatMapLaws
  28. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  29. def handleErrorConsistentWithRecover[A](fa: F[A], f: (E) => A): IsEq[F[A]]
    Definition Classes
    ApplicativeErrorLaws
  30. def handleErrorPure[A](a: A, f: (E) => A): IsEq[F[A]]
    Definition Classes
    ApplicativeErrorLaws
  31. def handleErrorWithConsistentWithRecoverWith[A](fa: F[A], f: (E) => F[A]): IsEq[F[A]]
    Definition Classes
    ApplicativeErrorLaws
  32. def handleErrorWithPure[A](a: A, f: (E) => F[A]): IsEq[F[A]]
    Definition Classes
    ApplicativeErrorLaws
  33. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  34. 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
  35. def invariantIdentity[A](fa: F[A]): IsEq[F[A]]
    Definition Classes
    InvariantLaws
  36. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  37. def kleisliAssociativity[A, B, C, D](f: (A) => F[B], g: (B) => F[C], h: (C) => F[D], a: A): IsEq[F[D]]

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

    The composition of cats.data.Kleisli arrows is associative. This is analogous to flatMapAssociativity.

    Definition Classes
    FlatMapLaws
  38. def kleisliLeftIdentity[A, B](a: A, f: (A) => F[B]): IsEq[F[B]]

    pure is the left identity element under left-to-right composition of cats.data.Kleisli arrows.

    pure is the left identity element under left-to-right composition of cats.data.Kleisli arrows. This is analogous to monadLeftIdentity.

    Definition Classes
    MonadLaws
  39. def kleisliRightIdentity[A, B](a: A, f: (A) => F[B]): IsEq[F[B]]

    pure is the right identity element under left-to-right composition of cats.data.Kleisli arrows.

    pure is the right identity element under left-to-right composition of cats.data.Kleisli arrows. This is analogous to monadRightIdentity.

    Definition Classes
    MonadLaws
  40. def map2EvalConsistency[A, B, C](fa: F[A], fb: F[B], f: (A, B) => C): IsEq[F[C]]
    Definition Classes
    ApplyLaws
  41. def map2ProductConsistency[A, B, C](fa: F[A], fb: F[B], f: (A, B) => C): IsEq[F[C]]
    Definition Classes
    ApplyLaws
  42. def mapFlatMapCoherence[A, B](fa: F[A], f: (A) => B): IsEq[F[B]]

    Make sure that map and flatMap are consistent.

    Make sure that map and flatMap are consistent.

    Definition Classes
    MonadLaws
  43. def monadErrorEnsureConsistency[A](fa: F[A], e: E, p: (A) => Boolean): IsEq[F[A]]
  44. def monadErrorEnsureOrConsistency[A](fa: F[A], e: (A) => E, p: (A) => Boolean): IsEq[F[A]]
  45. def monadErrorLeftZero[A, B](e: E, f: (A) => F[B]): IsEq[F[B]]
  46. def monadLeftIdentity[A, B](a: A, f: (A) => F[B]): IsEq[F[B]]
    Definition Classes
    MonadLaws
  47. def monadRightIdentity[A](fa: F[A]): IsEq[F[A]]
    Definition Classes
    MonadLaws
  48. def monoidalLeftIdentity[A](fa: F[A]): (F[(Unit, A)], F[A])
    Definition Classes
    ApplicativeLaws
  49. def monoidalRightIdentity[A](fa: F[A]): (F[(A, Unit)], F[A])
    Definition Classes
    ApplicativeLaws
  50. def mproductConsistency[A, B](fa: F[A], fb: (A) => F[B]): IsEq[F[(A, B)]]
    Definition Classes
    FlatMapLaws
  51. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  52. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  53. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  54. def onErrorPure[A](a: A, f: (E) => F[Unit]): IsEq[F[A]]
    Definition Classes
    ApplicativeErrorLaws
  55. def onErrorRaise[A](fa: F[A], e: E, fb: F[Unit]): IsEq[F[A]]
    Definition Classes
    ApplicativeErrorLaws
  56. def productLConsistency[A, B](fa: F[A], fb: F[B]): IsEq[F[A]]
    Definition Classes
    ApplyLaws
  57. def productRConsistency[A, B](fa: F[A], fb: F[B]): IsEq[F[B]]
    Definition Classes
    ApplyLaws
  58. def pureAttempt[A](a: A): IsEq[F[Either[E, A]]]
    Definition Classes
    ApplicativeErrorLaws
  59. def raiseErrorAttempt(e: E): IsEq[F[Either[E, Unit]]]
    Definition Classes
    ApplicativeErrorLaws
  60. def raiseErrorDistributesOverApLeft[A](h: (E) => F[A], e: E): IsEq[F[A]]
    Definition Classes
    ApplicativeErrorLaws
  61. def raiseErrorDistributesOverApRight[A](h: (E) => F[A], e: E): IsEq[F[A]]
    Definition Classes
    ApplicativeErrorLaws
  62. def recoverConsistentWithRecoverWith[A](fa: F[A], pf: PartialFunction[E, A]): IsEq[F[A]]
    Definition Classes
    ApplicativeErrorLaws
  63. def redeemDerivedFromAttemptMap[A, B](fa: F[A], fe: (E) => B, fs: (A) => B): IsEq[F[B]]
    Definition Classes
    ApplicativeErrorLaws
  64. def redeemWithDerivedFromAttemptFlatMap[A, B](fa: F[A], fe: (E) => F[B], fs: (A) => F[B]): IsEq[F[B]]
  65. def replicateAVoidReplicateA_Consistent[A](n: Int, fa: F[A]): IsEq[F[Unit]]
    Definition Classes
    ApplicativeLaws
  66. def rethrowAttempt[A](fa: F[A]): IsEq[F[A]]
  67. def semigroupalAssociativity[A, B, C](fa: F[A], fb: F[B], fc: F[C]): (F[(A, (B, C))], F[((A, B), C)])
    Definition Classes
    SemigroupalLaws
  68. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  69. def tailRecMConsistentFlatMap[A](a: A, f: (A) => F[A]): IsEq[F[A]]
    Definition Classes
    FlatMapLaws
  70. lazy val tailRecMStackSafety: IsEq[F[Int]]
    Definition Classes
    MonadLaws
  71. def toString(): String
    Definition Classes
    AnyRef → Any
  72. def voidErrorConsistentWithHandleError(fu: F[Unit]): IsEq[F[Unit]]
    Definition Classes
    ApplicativeErrorLaws
  73. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  74. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  75. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from MonadLaws[F]

Inherited from FlatMapLaws[F]

Inherited from ApplicativeErrorLaws[F, E]

Inherited from ApplicativeLaws[F]

Inherited from ApplyLaws[F]

Inherited from SemigroupalLaws[F]

Inherited from FunctorLaws[F]

Inherited from InvariantLaws[F]

Inherited from AnyRef

Inherited from Any

Ungrouped