Object

org.atnos.eff

interpret

Related Doc: package eff

Permalink

object interpret extends Interpret

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. interpret
  2. Interpret
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait Loop[M[_], R, A, B] extends AnyRef

    Permalink

    Generalisation of Recurse and StateRecurse

    Generalisation of Recurse and StateRecurse

    Definition Classes
    Interpret
  2. trait Recurse[M[_], R, A] extends AnyRef

    Permalink

    Helper trait for computations which might produce several M[X] in a stack of effects.

    Helper trait for computations which might produce several M[X] in a stack of effects.

    Either we can produce an X to pass to a continuation or we're done

    Definition Classes
    Interpret
  3. trait SideEffect[T[_]] extends AnyRef

    Permalink
    Definition Classes
    Interpret
  4. trait StateRecurse[M[_], A, B] extends AnyRef

    Permalink

    Helper trait for computations which might produce several M[X] in a stack of effects and which need to keep some state around

    Helper trait for computations which might produce several M[X] in a stack of effects and which need to keep some state around

    This is typically the case for Writer or State which need to keep some state S after each evaluation Evaluating the effect M[X] might use the previous S value as shown in the apply method

    Finally when the Eff[M |: R, A] returns an A, this one can be combined with the last state value to produce a B

    Definition Classes
    Interpret
  5. trait Translate[T[_], U] extends AnyRef

    Permalink

    trait for translating one effect into other ones in the same stack

    trait for translating one effect into other ones in the same stack

    Definition Classes
    Interpret

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 finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def intercept[R, M[_], A, B](pure: (A) ⇒ Eff[R, B], recurse: Recurse[M, R, B])(effects: Eff[R, A])(implicit m: Member[M, R]): Eff[R, B]

    Permalink

    INTERPRET IN THE SAME STACK

    INTERPRET IN THE SAME STACK

    Definition Classes
    Interpret
  12. def intercept1[R, M[_], A, B](pure: (A) ⇒ B)(recurse: Recurse[M, R, B])(effects: Eff[R, A])(implicit m: Member[M, R]): Eff[R, B]

    Permalink

    simpler version of intercept where the pure value is just mapped to another type

    simpler version of intercept where the pure value is just mapped to another type

    Definition Classes
    Interpret
  13. def interceptLoop[R, M[_], A, B, S](pure: (A) ⇒ Eff[R, B], loop: Loop[M, R, A, Eff[R, B]])(effects: Eff[R, A])(implicit m: Member[M, R]): Eff[R, B]

    Permalink

    intercept an effect and interpret it in the same stack.

    intercept an effect and interpret it in the same stack. This method is stack-safe

    Definition Classes
    Interpret
  14. def interceptLoop1[R, M[_], A, B, S](pure: (A) ⇒ B)(loop: Loop[M, R, A, Eff[R, B]])(effects: Eff[R, A])(implicit m: Member[M, R]): Eff[R, B]

    Permalink
    Definition Classes
    Interpret
  15. def interpret[R, U, M[_], A, B](pure: (A) ⇒ Eff[U, B], recurse: Recurse[M, U, B])(effects: Eff[R, A])(implicit m: Aux[M, R, U]): Eff[U, B]

    Permalink

    interpret the effect M in the M |: R stack

    interpret the effect M in the M |: R stack

    Definition Classes
    Interpret
  16. def interpret1[R, U, M[_], A, B](pure: (A) ⇒ B)(recurse: Recurse[M, U, B])(effects: Eff[R, A])(implicit m: Aux[M, R, U]): Eff[U, B]

    Permalink

    simpler version of interpret where the pure value is just mapped to another type

    simpler version of interpret where the pure value is just mapped to another type

    Definition Classes
    Interpret
  17. def interpretLoop[R, U, M[_], A, B, S](pure: (A) ⇒ Eff[U, B], loop: Loop[M, R, A, Eff[U, B]])(effects: Eff[R, A])(implicit m: Aux[M, R, U]): Eff[U, B]

    Permalink

    generalization of interpret and interpretState

    generalization of interpret and interpretState

    This method contains a loop which is stack-safe

    Definition Classes
    Interpret
  18. def interpretLoop1[R, U, M[_], A, B, S](pure: (A) ⇒ B)(loop: Loop[M, R, A, Eff[U, B]])(effects: Eff[R, A])(implicit m: Aux[M, R, U]): Eff[U, B]

    Permalink
    Definition Classes
    Interpret
  19. def interpretState[R, U, M[_], A, B](pure: (A) ⇒ Eff[U, B], recurse: StateRecurse[M, A, B])(effects: Eff[R, A])(implicit m: Aux[M, R, U]): Eff[U, B]

    Permalink

    interpret the effect M in the M |: R stack, keeping track of some state

    interpret the effect M in the M |: R stack, keeping track of some state

    Definition Classes
    Interpret
  20. def interpretState1[R, U, M[_], A, B](pure: (A) ⇒ B)(recurse: StateRecurse[M, A, B])(effects: Eff[R, A])(implicit m: Aux[M, R, U]): Eff[U, B]

    Permalink

    simpler version of interpret1 where the pure value is just mapped to another type

    simpler version of interpret1 where the pure value is just mapped to another type

    Definition Classes
    Interpret
  21. def interpretUnsafe[R, U, T[_], A](effects: Eff[R, A])(sideEffect: SideEffect[T])(implicit m: Aux[T, R, U]): Eff[U, A]

    Permalink

    interpret an effect by running side-effects

    interpret an effect by running side-effects

    Definition Classes
    Interpret
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  28. def transform[SR, BR, U, TS[_], TB[_], A](r: Eff[SR, A], nat: NaturalTransformation[TS, TB])(implicit sr: Aux[TS, SR, U], br: Aux[TB, BR, U]): Eff[BR, A]

    Permalink

    transform an effect into another one using a natural transformation

    transform an effect into another one using a natural transformation

    Definition Classes
    Interpret
  29. def translate[R, U, T[_], A](effects: Eff[R, A])(tr: Translate[T, U])(implicit m: Aux[T, R, U]): Eff[U, A]

    Permalink

    Translate one effect of the stack into some of the other effects in the stack

    Translate one effect of the stack into some of the other effects in the stack

    Definition Classes
    Interpret
  30. final def wait(): Unit

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

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

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

Inherited from Interpret

Inherited from AnyRef

Inherited from Any

Ungrouped