Object

org.specs2.control.eff

StateEffect

Related Doc: package eff

Permalink

object StateEffect

Effect for passing state along computations

Several state effects can be used in the same stack if they are tagged

Internally backed up by scalaz.State

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. StateEffect
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

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. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  8. def eval[R <: Effects, S, A](initial: S)(w: Eff[|:[[β]IndexedStateT[[+X]X, S, S, β], R], A]): Eff[R, A]

    Permalink

    run a state effect, with an initial value, return only the value

  9. def evalZero[R <: Effects, S, A](w: Eff[|:[[β]IndexedStateT[[+X]X, S, S, β], R], A])(implicit arg0: Monoid[S]): Eff[R, A]

    Permalink

    run a state effect, with a Monoidal state

  10. def exec[R <: Effects, S, A](initial: S)(w: Eff[|:[[β]IndexedStateT[[+X]X, S, S, β], R], A]): Eff[R, S]

    Permalink

    run a state effect, with an initial value, return only the state

  11. def execZero[R <: Effects, S, A](w: Eff[|:[[β]IndexedStateT[[+X]X, S, S, β], R], A])(implicit arg0: Monoid[S]): Eff[R, S]

    Permalink

    run a state effect, with a monoidal state, return only the state

  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def get[R, S](implicit member: Member[[β]IndexedStateT[[+X]X, S, S, β], R]): Eff[R, S]

    Permalink

    get the current state value

  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def gets[R, S, T](f: (S) ⇒ T)(implicit member: Member[[β]IndexedStateT[[+X]X, S, S, β], R]): Eff[R, T]

    Permalink

    get the current state value and map it with a function f

  16. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  18. def modify[R, S](f: (S) ⇒ S)(implicit member: Member[[β]IndexedStateT[[+X]X, S, S, β], R]): Eff[R, Unit]

    Permalink

    modify the current state value

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

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

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

    Permalink
    Definition Classes
    AnyRef
  22. def put[R, S](s: S)(implicit member: Member[[β]IndexedStateT[[+X]X, S, S, β], R]): Eff[R, Unit]

    Permalink

    store a new state value

  23. def runState[R <: Effects, S1, A](initial: S1)(w: Eff[|:[[β]IndexedStateT[[+X]X, S1, S1, β], R], A]): Eff[R, (A, S1)]

    Permalink

    run a state effect, with an initial value

  24. def runStateZero[R <: Effects, S, A](w: Eff[|:[[β]IndexedStateT[[+X]X, S, S, β], R], A])(implicit arg0: Monoid[S]): Eff[R, (A, S)]

    Permalink

    run a state effect, with an initial value

  25. def runTaggedState[R <: Effects, T, S1, A](initial: S1)(w: Eff[|:[[X]AnyRef { ... /* 2 definitions in type refinement */ }, R], A]): Eff[R, (A, S1)]

    Permalink

    run a tagged state effect, with an initial value

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped