Object

org.specs2.control.eff

all

Related Doc: package eff

Permalink

object all extends WriterEffect with EvalEffect with StateEffect with DisjunctionEffect with SafeEffect with AsyncEffect with EffInterpretation with EffCreation with EffImplicits

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. all
  2. EffImplicits
  3. EffCreation
  4. EffInterpretation
  5. AsyncEffect
  6. AsyncCreation
  7. SafeEffect
  8. SafeInterpretation
  9. SafeCreation
  10. SafeTypes
  11. DisjunctionEffect
  12. DisjunctionInterpretation
  13. DisjunctionCreation
  14. StateEffect
  15. StateInterpretation
  16. StateCreation
  17. EvalEffect
  18. EvalInterpretation
  19. EvalCreation
  20. EvalTypes
  21. WriterEffect
  22. WriterInterpretation
  23. WriterCreation
  24. AnyRef
  25. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Eval[A] = Name[A]

    Permalink
    Definition Classes
    EvalTypes
  2. type ThrowableOr[A] = \/[Throwable, A]

    Permalink
    Definition Classes
    DisjunctionCreation
  3. type _Async[R] = Member[Async, R]

    Permalink
    Definition Classes
    AsyncCreation
  4. type _Eval[R] = Member[Eval, R]

    Permalink
    Definition Classes
    EvalTypes
  5. type _Safe[R] = MemberInOut[Safe, R]

    Permalink
    Definition Classes
    SafeTypes
  6. type _ThrowableOr[R] = Member[ThrowableOr, R]

    Permalink
    Definition Classes
    DisjunctionCreation
  7. type _async[R] = MemberIn[Async, R]

    Permalink
    Definition Classes
    AsyncCreation
  8. type _eval[R] = MemberIn[Eval, R]

    Permalink
    Definition Classes
    EvalTypes
  9. type _safe[R] = MemberIn[Safe, R]

    Permalink
    Definition Classes
    SafeTypes
  10. type _throwableOr[R] = MemberIn[ThrowableOr, R]

    Permalink
    Definition Classes
    DisjunctionCreation

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 EffApplicative[R]: Applicative[[β$3$]Eff[R, β$3$]]

    Permalink
    Definition Classes
    EffImplicits
  5. implicit final def EffMonad[R]: Monad[[β$0$]Eff[R, β$0$]]

    Permalink

    Monad implementation for the Eff[R, ?] type

    Monad implementation for the Eff[R, ?] type

    Definition Classes
    EffImplicits
  6. implicit def ListFold[A]: FoldId[A, List[A]]

    Permalink
    Definition Classes
    WriterInterpretation
  7. def MonoidFold[A](implicit arg0: Monoid[A]): FoldId[A, A]

    Permalink
    Definition Classes
    WriterInterpretation
  8. def UnsafeFold[A](f: (A) ⇒ Unit): FoldId[A, Unit]

    Permalink
    Definition Classes
    WriterInterpretation
  9. def ap[R, A, B](a: Eff[R, A])(f: Eff[R, (A) ⇒ B]): Eff[R, B]

    Permalink

    apply a function to an Eff value using the applicative instance

    apply a function to an Eff value using the applicative instance

    Definition Classes
    EffCreation
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def async[R, A](subscribe: Subscribe[A], timeout: Option[FiniteDuration] = None)(implicit arg0: _async[R]): Eff[R, A]

    Permalink
    Definition Classes
    AsyncCreation
  12. def asyncDelay[R, A](a: ⇒ A)(implicit arg0: _async[R]): Eff[R, A]

    Permalink
    Definition Classes
    AsyncCreation
  13. def asyncFail[R, A](t: Throwable)(implicit arg0: _async[R]): Eff[R, A]

    Permalink
    Definition Classes
    AsyncCreation
  14. def asyncFork[R, A](a: ⇒ A, timeout: Option[FiniteDuration] = None)(implicit arg0: _async[R]): Eff[R, A]

    Permalink
    Definition Classes
    AsyncCreation
  15. def asyncNow[R, A](a: A)(implicit arg0: _async[R]): Eff[R, A]

    Permalink
    Definition Classes
    AsyncCreation
  16. def attempt[R, A](action: Eff[R, A])(implicit m: /=[Safe, R]): Eff[R, \/[Throwable, A]]

    Permalink

    try to execute an action an report any issue

    try to execute an action an report any issue

    Definition Classes
    SafeInterpretation
  17. def attemptEval[R, U, A](r: Eff[R, A])(implicit m: Aux[Eval, R, U]): Eff[U, \/[Throwable, A]]

    Permalink
    Definition Classes
    EvalInterpretation
  18. def attemptSafe[R, A](r: Eff[R, A])(implicit m: /=[Safe, R]): Eff[R, (\/[Throwable, A], List[Throwable])]

    Permalink

    Attempt to execute a safe action including finalizers

    Attempt to execute a safe action including finalizers

    Definition Classes
    SafeInterpretation
  19. def bracket[R, A, B, C](acquire: Eff[R, A])(step: (A) ⇒ Eff[R, B])(release: (A) ⇒ Eff[R, C])(implicit m: /=[Safe, R]): Eff[R, B]

    Permalink
    Definition Classes
    SafeInterpretation
  20. def catchLeft[R, E, A](r: Eff[R, A])(handle: (E) ⇒ Eff[R, A])(implicit member: <=[[β$10$]\/[E, β$10$], R]): Eff[R, A]

    Permalink

    catch and handle a possible -\/ value

    catch and handle a possible -\/ value

    Definition Classes
    DisjunctionInterpretation
  21. def catchThrowable[R, A, B](action: Eff[R, A], pureValue: (A) ⇒ B, onThrowable: (Throwable) ⇒ Eff[R, B])(implicit m: /=[Safe, R]): Eff[R, B]

    Permalink

    evaluate 1 action possibly having error effects

    evaluate 1 action possibly having error effects

    Execute a second action if the first one is not successful, based on the error

    Definition Classes
    SafeInterpretation
  22. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. def collapse[R, M[_], A](r: Eff[R, M[A]])(implicit m: |=[M, R]): Eff[R, A]

    Permalink

    use the internal effect as one of the stack effects

    use the internal effect as one of the stack effects

    Definition Classes
    EffCreation
  24. def delay[R, A](a: ⇒ A)(implicit arg0: _eval[R]): Eff[R, A]

    Permalink
    Definition Classes
    EvalCreation
  25. def detach[M[_], A](eff: Eff[Fx1[M], A])(implicit arg0: Monad[M], bindRec: BindRec[M]): M[A]

    Permalink

    peel-off the only present effect

    peel-off the only present effect

    Definition Classes
    EffInterpretation
  26. def detachA[M[_], A](eff: Eff[Fx1[M], A])(implicit monad: Monad[M], bindRec: BindRec[M], applicative: Applicative[M]): M[A]

    Permalink

    peel-off the only present effect, using an Applicative instance where possible

    peel-off the only present effect, using an Applicative instance where possible

    Definition Classes
    EffInterpretation
  27. def effInto[R, U, A](e: Eff[R, A])(implicit f: IntoPoly[R, U]): Eff[U, A]

    Permalink

    An Eff[R, A] value can be transformed into an Eff[U, A] value provided that all the effects in R are also in U

    An Eff[R, A] value can be transformed into an Eff[U, A] value provided that all the effects in R are also in U

    Definition Classes
    EffInterpretation
  28. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  30. def eval[R, A](a: Name[A])(implicit arg0: _safe[R]): Eff[R, A]

    Permalink
    Definition Classes
    SafeCreation
  31. def evalState[R, U, S, A](initial: S)(w: Eff[R, A])(implicit m: Aux[[β$18$]IndexedStateT[[X]X, S, S, β$18$], R, U]): Eff[U, A]

    Permalink

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

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

    Definition Classes
    StateInterpretation
  32. def evalStateZero[R, U, S, A](w: Eff[R, A])(implicit arg0: Monoid[S], m: Aux[[β$17$]IndexedStateT[[X]X, S, S, β$17$], R, U]): Eff[U, A]

    Permalink

    run a state effect, with a Monoidal state

    run a state effect, with a Monoidal state

    Definition Classes
    StateInterpretation
  33. def exception[R, A](t: Throwable)(implicit arg0: _safe[R]): Eff[R, A]

    Permalink
    Definition Classes
    SafeCreation
  34. def execSafe[R, U, A](r: Eff[R, A])(implicit m: Aux[Safe, R, U]): Eff[U, \/[Throwable, A]]

    Permalink

    run a safe effect but drop the finalizer errors

    run a safe effect but drop the finalizer errors

    Definition Classes
    SafeInterpretation
  35. def execState[R, U, S, A](initial: S)(w: Eff[R, A])(implicit m: Aux[[β$20$]IndexedStateT[[X]X, S, S, β$20$], R, U]): Eff[U, S]

    Permalink

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

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

    Definition Classes
    StateInterpretation
  36. def execStateZero[R, U, S, A](w: Eff[R, A])(implicit arg0: Monoid[S], m: Aux[[β$19$]IndexedStateT[[X]X, S, S, β$19$], R, U]): Eff[U, S]

    Permalink

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

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

    Definition Classes
    StateInterpretation
  37. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  38. def finalizerException[R](t: Throwable)(implicit arg0: _safe[R]): Eff[R, Unit]

    Permalink
    Definition Classes
    SafeCreation
  39. def fork[R, A](a: ⇒ Async[A], timeout: Option[FiniteDuration] = None)(implicit arg0: _async[R]): Eff[R, A]

    Permalink
    Definition Classes
    AsyncCreation
  40. def fromDisjunction[R, E, A](disjunction: \/[E, A])(implicit member: |=[[β$1$]\/[E, β$1$], R]): Eff[R, A]

    Permalink

    create an \/ effect from a single \/ value

    create an \/ effect from a single \/ value

    Definition Classes
    DisjunctionCreation
  41. def get[R, S](implicit member: |=[[β$2$]IndexedStateT[[X]X, S, S, β$2$], R]): Eff[R, S]

    Permalink

    get the current state value

    get the current state value

    Definition Classes
    StateCreation
  42. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  43. def gets[R, S, T](f: (S) ⇒ T)(implicit member: |=[[β$4$]IndexedStateT[[X]X, S, S, β$4$], R]): Eff[R, T]

    Permalink

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

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

    Definition Classes
    StateCreation
  44. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  45. def ignoreException[R, E <: Throwable, A](action: Eff[R, A])(implicit arg0: ClassTag[E], m: /=[Safe, R]): Eff[R, Unit]

    Permalink

    ignore one possible exception that could be thrown

    ignore one possible exception that could be thrown

    Definition Classes
    SafeInterpretation
  46. def impure[R, X, A](union: Union[R, X], continuation: Arrs[R, X, A]): Eff[R, A]

    Permalink

    create a impure value from an union of effects and a continuation

    create a impure value from an union of effects and a continuation

    Definition Classes
    EffCreation
  47. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  48. def left[R, E, A](e: E)(implicit member: |=[[β$2$]\/[E, β$2$], R]): Eff[R, A]

    Permalink

    create a failed value

    create a failed value

    Definition Classes
    DisjunctionCreation
  49. def lensState[TS, SS, U, T, S, A](state: Eff[TS, A], getter: (S) ⇒ T, setter: (S, T) ⇒ S)(implicit ts: Aux[[β$26$]IndexedStateT[[X]X, T, T, β$26$], TS, U], ss: Aux[[β$27$]IndexedStateT[[X]X, S, S, β$27$], SS, U]): Eff[SS, A]

    Permalink

    Lift a computation over a "small" state (for a subsystem) into a computation over a "bigger" state (for the full application state)

    Lift a computation over a "small" state (for a subsystem) into a computation over a "bigger" state (for the full application state)

    Definition Classes
    StateInterpretation
  50. def localDisjunction[SR, BR, U, E1, E2, A](r: Eff[SR, A], getter: (E1) ⇒ E2)(implicit sr: Aux[[β$13$]\/[E1, β$13$], SR, U], br: Aux[[β$14$]\/[E2, β$14$], BR, U]): Eff[BR, A]

    Permalink

    Lift a computation over a "small" error (for a subsystem) into a computation over a "bigger" error (for the full application)

    Lift a computation over a "small" error (for a subsystem) into a computation over a "bigger" error (for the full application)

    Definition Classes
    DisjunctionInterpretation
  51. def modify[R, S](f: (S) ⇒ S)(implicit member: |=[[β$6$]IndexedStateT[[X]X, S, S, β$6$], R]): Eff[R, Unit]

    Permalink

    modify the current state value

    modify the current state value

    Definition Classes
    StateCreation
  52. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  55. def now[R, A](a: A)(implicit arg0: _eval[R]): Eff[R, A]

    Permalink
    Definition Classes
    EvalCreation
  56. def optionDisjunction[R, E, A](option: Option[A], e: E)(implicit member: |=[[β$0$]\/[E, β$0$], R]): Eff[R, A]

    Permalink

    create an \/ effect from a single Option value

    create an \/ effect from a single Option value

    Definition Classes
    DisjunctionCreation
  57. def otherwise[R, A](action: Eff[R, A], onThrowable: Eff[R, A])(implicit m: /=[Safe, R]): Eff[R, A]

    Permalink

    evaluate 1 action possibly having error effects

    evaluate 1 action possibly having error effects

    Execute a second action if the first one is not successful

    Definition Classes
    SafeInterpretation
  58. def protect[R, A](a: ⇒ A)(implicit arg0: _safe[R]): Eff[R, A]

    Permalink
    Definition Classes
    SafeCreation
  59. def pure[R, A](a: A): Eff[R, A]

    Permalink

    create a pure value

    create a pure value

    Definition Classes
    EffCreation
  60. def put[R, S](s: S)(implicit member: |=[[β$0$]IndexedStateT[[X]X, S, S, β$0$], R]): Eff[R, Unit]

    Permalink

    store a new state value

    store a new state value

    Definition Classes
    StateCreation
  61. def right[R, E, A](a: A)(implicit member: |=[[β$4$]\/[E, β$4$], R]): Eff[R, A]

    Permalink

    create a correct value

    create a correct value

    Definition Classes
    DisjunctionCreation
  62. def run[A](eff: Eff[NoFx, A]): A

    Permalink

    base runner for an Eff value having no effects at all

    base runner for an Eff value having no effects at all

    This runner can only return the value in Pure because it doesn't known how to interpret the effects in Impure

    Definition Classes
    EffInterpretation
  63. def runDisjunction[R, U, E, A](r: Eff[R, A])(implicit m: Aux[[β$6$]\/[E, β$6$], R, U]): Eff[U, \/[E, A]]

    Permalink

    run the disjunction effect, yielding E \/ A

    run the disjunction effect, yielding E \/ A

    Definition Classes
    DisjunctionInterpretation
  64. def runEither[R, U, E, A](r: Eff[R, A])(implicit m: Aux[[β$9$]\/[E, β$9$], R, U]): Eff[U, Either[E, A]]

    Permalink

    run the disjunction effect, yielding Either[E, A]

    run the disjunction effect, yielding Either[E, A]

    Definition Classes
    DisjunctionInterpretation
  65. def runEval[R, U, A](r: Eff[R, A])(implicit m: Aux[Eval, R, U]): Eff[U, A]

    Permalink
    Definition Classes
    EvalInterpretation
  66. def runLocalDisjunction[R, U, E1, E2, A](r: Eff[R, A], getter: (E1) ⇒ E2)(implicit sr: Aux[[β$19$]\/[E1, β$19$], R, U], br: |=[[β$20$]\/[E2, β$20$], U]): Eff[U, A]

    Permalink

    Translate an error effect to another one in the same stack a computation over a "bigger" error (for the full application)

    Translate an error effect to another one in the same stack a computation over a "bigger" error (for the full application)

    Definition Classes
    DisjunctionInterpretation
  67. def runPure[R, A](eff: Eff[R, A]): Option[A]

    Permalink

    get the pure value if there is no effect

    get the pure value if there is no effect

    Definition Classes
    EffInterpretation
  68. def runSafe[R, U, A](r: Eff[R, A])(implicit m: Aux[Safe, R, U]): Eff[U, (\/[Throwable, A], List[Throwable])]

    Permalink

    Run a safe effect

    Run a safe effect

    Collect finalizer exceptions if any

    Definition Classes
    SafeInterpretation
  69. def runState[R, U, S1, A](initial: S1)(w: Eff[R, A])(implicit m: Aux[[β$22$]IndexedStateT[[X]X, S1, S1, β$22$], R, U]): Eff[U, (A, S1)]

    Permalink

    run a state effect, with an initial value

    run a state effect, with an initial value

    Definition Classes
    StateInterpretation
  70. def runStateZero[R, U, S, A](w: Eff[R, A])(implicit arg0: Monoid[S], m: Aux[[β$21$]IndexedStateT[[X]X, S, S, β$21$], R, U]): Eff[U, (A, S)]

    Permalink

    run a state effect, with an initial value

    run a state effect, with an initial value

    Definition Classes
    StateInterpretation
  71. def runWriter[R, U, O, A, B](w: Eff[R, A])(implicit m: Aux[[β$2$]WriterT[[X]X, O, β$2$], R, U]): Eff[U, (A, List[O])]

    Permalink

    run a writer effect and return the list of written values

    run a writer effect and return the list of written values

    This uses a ListBuffer internally to append values

    Definition Classes
    WriterInterpretation
  72. def runWriterFold[R, U, O, A, B](w: Eff[R, A])(fold: FoldId[O, B])(implicit m: Aux[[β$3$]WriterT[[X]X, O, β$3$], R, U]): Eff[U, (A, B)]

    Permalink

    More general fold of runWriter where we can use a fold to accumulate values in a mutable buffer

    More general fold of runWriter where we can use a fold to accumulate values in a mutable buffer

    Definition Classes
    WriterInterpretation
  73. def runWriterUnsafe[R, U, O, A](w: Eff[R, A])(f: (O) ⇒ Unit)(implicit m: Aux[[β$7$]WriterT[[X]X, O, β$7$], R, U]): Eff[U, A]

    Permalink

    Run a side-effecting fold

    Run a side-effecting fold

    Definition Classes
    WriterInterpretation
  74. def safeLoop[R, U, A]: Loop[Safe, R, A, Eff[U, (\/[Throwable, A], Vector[Throwable])], Eff[U, Unit]]

    Permalink
    Definition Classes
    SafeInterpretation
  75. def send[T[_], R, V](tv: T[V])(implicit member: |=[T, R]): Eff[R, V]

    Permalink

    create an Eff[R, A] value from an effectful value of type T[V] provided that T is one of the effects of R

    create an Eff[R, A] value from an effectful value of type T[V] provided that T is one of the effects of R

    Definition Classes
    EffCreation
  76. def sequenceA[R, F[_], A](fs: F[Eff[R, A]])(implicit arg0: Traverse[F]): Eff[R, F[A]]

    Permalink

    use the applicative instance of Eff to sequence a list of values

    use the applicative instance of Eff to sequence a list of values

    Definition Classes
    EffCreation
  77. def subscribe[R, A](c: Subscribe[A], timeout: Option[FiniteDuration] = None)(implicit arg0: _async[R]): Eff[R, A]

    Permalink
    Definition Classes
    AsyncCreation
  78. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  79. def tell[R, O](o: O)(implicit member: |=[[β$0$]WriterT[[X]X, O, β$0$], R]): Eff[R, Unit]

    Permalink

    write a given value

    write a given value

    Definition Classes
    WriterCreation
  80. def thenFinally[R, A](action: Eff[R, A], last: Eff[R, Unit])(implicit m: _Safe[R]): Eff[R, A]

    Permalink

    evaluate 1 action possibly having error effects execute a second action whether the first is successful or not but keep track of finalizer exceptions

    evaluate 1 action possibly having error effects execute a second action whether the first is successful or not but keep track of finalizer exceptions

    Definition Classes
    SafeInterpretation
  81. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  82. def traverseA[R, F[_], A, B](fs: F[A])(f: (A) ⇒ Eff[R, B])(implicit arg0: Traverse[F]): Eff[R, F[B]]

    Permalink

    use the applicative instance of Eff to traverse a list of values

    use the applicative instance of Eff to traverse a list of values

    Definition Classes
    EffCreation
  83. def unit[R]: Eff[R, Unit]

    Permalink

    create an Eff value for ()

    create an Eff value for ()

    Definition Classes
    EffCreation
  84. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  87. def whenFailed[R, A](action: Eff[R, A], onThrowable: (Throwable) ⇒ Eff[R, A])(implicit m: /=[Safe, R]): Eff[R, A]

    Permalink

    evaluate 1 action possibly throwing exceptions

    evaluate 1 action possibly throwing exceptions

    Execute a second action if the first one is not successful, based on the exception

    The final value type is the same as the original type

    Definition Classes
    SafeInterpretation

Inherited from EffImplicits

Inherited from EffCreation

Inherited from EffInterpretation

Inherited from AsyncEffect

Inherited from AsyncCreation

Inherited from SafeEffect

Inherited from SafeInterpretation

Inherited from SafeCreation

Inherited from SafeTypes

Inherited from DisjunctionEffect

Inherited from DisjunctionInterpretation

Inherited from DisjunctionCreation

Inherited from StateEffect

Inherited from StateInterpretation

Inherited from StateCreation

Inherited from EvalEffect

Inherited from EvalInterpretation

Inherited from EvalCreation

Inherited from EvalTypes

Inherited from WriterEffect

Inherited from WriterInterpretation

Inherited from WriterCreation

Inherited from AnyRef

Inherited from Any

Ungrouped