Trait/Object

cats.laws

MonadStateLaws

Related Docs: object MonadStateLaws | package laws

Permalink

trait MonadStateLaws[F[_, _], S] extends MonadLaws[[β]F[S, β]]

Linear Supertypes
MonadLaws[[β]F[S, β]], FlatMapLaws[[β]F[S, β]], ApplicativeLaws[[β]F[S, β]], ApplyLaws[[β]F[S, β]], FunctorLaws[[β]F[S, β]], InvariantLaws[[β]F[S, β]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MonadStateLaws
  2. MonadLaws
  3. FlatMapLaws
  4. ApplicativeLaws
  5. ApplyLaws
  6. FunctorLaws
  7. InvariantLaws
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. implicit abstract def F: MonadState[F, S]

    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 applicativeComposition[A, B, C](fa: F[S, A], fab: F[S, (A) ⇒ B], fbc: F[S, (B) ⇒ C]): IsEq[F[S, C]]

    Permalink

    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
  5. def applicativeHomomorphism[A, B](a: A, f: (A) ⇒ B): IsEq[F[S, B]]

    Permalink
    Definition Classes
    ApplicativeLaws
  6. def applicativeIdentity[A](fa: F[S, A]): IsEq[F[S, A]]

    Permalink
    Definition Classes
    ApplicativeLaws
  7. def applicativeInterchange[A, B](a: A, ff: F[S, (A) ⇒ B]): IsEq[F[S, B]]

    Permalink
    Definition Classes
    ApplicativeLaws
  8. def applicativeMap[A, B](fa: F[S, A], f: (A) ⇒ B): IsEq[F[S, B]]

    Permalink
    Definition Classes
    ApplicativeLaws
  9. def applyComposition[A, B, C](fa: F[S, A], fab: F[S, (A) ⇒ B], fbc: F[S, (B) ⇒ C]): IsEq[F[S, C]]

    Permalink
    Definition Classes
    ApplyLaws
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def clone(): AnyRef

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

    Permalink
    Definition Classes
    FunctorLaws
  13. def covariantIdentity[A](fa: F[S, A]): IsEq[F[S, A]]

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def flatMapAssociativity[A, B, C](fa: F[S, A], f: (A) ⇒ F[S, B], g: (B) ⇒ F[S, C]): IsEq[F[S, C]]

    Permalink
    Definition Classes
    FlatMapLaws
  18. def flatMapConsistentApply[A, B](fa: F[S, A], fab: F[S, (A) ⇒ B]): IsEq[F[S, B]]

    Permalink
    Definition Classes
    FlatMapLaws
  19. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    InvariantLaws
  22. def invariantIdentity[A](fa: F[S, A]): IsEq[F[S, A]]

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

    Permalink
    Definition Classes
    Any
  24. def kleisliAssociativity[A, B, C, D](f: (A) ⇒ F[S, B], g: (B) ⇒ F[S, C], h: (C) ⇒ F[S, D], a: A): IsEq[F[S, D]]

    Permalink

    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
  25. def kleisliLeftIdentity[A, B](a: A, f: (A) ⇒ F[S, B]): IsEq[F[S, B]]

    Permalink

    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
  26. def kleisliRightIdentity[A, B](a: A, f: (A) ⇒ F[S, B]): IsEq[F[S, B]]

    Permalink

    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
  27. def monadLeftIdentity[A, B](a: A, f: (A) ⇒ F[S, B]): IsEq[F[S, B]]

    Permalink
    Definition Classes
    MonadLaws
  28. def monadRightIdentity[A](fa: F[S, A]): IsEq[F[S, A]]

    Permalink
    Definition Classes
    MonadLaws
  29. val monadStateGetIdempotent: IsEq[F[S, S]]

    Permalink
  30. val monadStateGetSet: IsEq[F[S, Unit]]

    Permalink
  31. def monadStateSetGet(s: S): IsEq[F[S, S]]

    Permalink
  32. def monadStateSetTwice(s: S, t: S): IsEq[F[S, Unit]]

    Permalink
  33. final def ne(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

Inherited from MonadLaws[[β]F[S, β]]

Inherited from FlatMapLaws[[β]F[S, β]]

Inherited from ApplicativeLaws[[β]F[S, β]]

Inherited from ApplyLaws[[β]F[S, β]]

Inherited from FunctorLaws[[β]F[S, β]]

Inherited from InvariantLaws[[β]F[S, β]]

Inherited from AnyRef

Inherited from Any

Ungrouped