Packages

case class Impure[R, X, A](union: Effect[R, X], continuation: Continuation[R, X, A], last: Last[R] = Last.none[R]) extends Eff[R, A] with Product with Serializable

Impure is an effect (encoded as one possibility among other effects, a Union) and a continuation providing the next Eff value.

This essentially models a flatMap operation with the current effect and the monadic function to apply to a value once the effect is interpreted

One effect can always be executed last, just for side-effects

Linear Supertypes
Serializable, Product, Equals, Eff[R, A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Impure
  2. Serializable
  3. Product
  4. Equals
  5. Eff
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Impure(union: Effect[R, X], continuation: Continuation[R, X, A], last: Last[R] = Last.none[R])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def *>[B](fb: Eff[R, B]): Eff[R, B]
    Definition Classes
    Eff
  4. def <*[B](fb: Eff[R, B]): Eff[R, A]
    Definition Classes
    Eff
  5. def <<[B](fb: Eff[R, B]): Eff[R, A]
    Definition Classes
    Eff
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. def >>[B](fb: Eff[R, B]): Eff[R, B]
    Definition Classes
    Eff
  8. def >>=[B](f: (A) => Eff[R, B]): Eff[R, B]
    Definition Classes
    Eff
  9. def addLast(l: Last[R]): Eff[R, A]

    add one last action to be executed after any computation chained to this Eff value

    add one last action to be executed after any computation chained to this Eff value

    Definition Classes
    ImpureEff
  10. def addLast(l: => Eff[R, Unit]): Eff[R, A]

    add one last action to be executed after any computation chained to this Eff value

    add one last action to be executed after any computation chained to this Eff value

    Definition Classes
    Eff
  11. def ap[B](f: Eff[R, (A) => B]): Eff[R, B]
    Definition Classes
    Eff
  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  14. val continuation: Continuation[R, X, A]
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  17. def flatMap[B](f: (A) => Eff[R, B]): Eff[R, B]
    Definition Classes
    Eff
  18. def flatten[B](implicit ev: <:<[A, Eff[R, B]]): Eff[R, B]
    Definition Classes
    Eff
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. val last: Last[R]
  22. def map[B](f: (A) => B): Eff[R, B]
    Definition Classes
    Eff
  23. def map2[B, C](fb: Eff[R, B])(f: (A, B) => C): Eff[R, C]
    Definition Classes
    Eff
  24. def map2Flatten[B, C](fb: Eff[R, B])(f: (A, B) => Eff[R, C]): Eff[R, C]
    Definition Classes
    Eff
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. def product[B](fb: Eff[R, B]): Eff[R, (A, B)]
    Definition Classes
    Eff
  29. def productElementNames: Iterator[String]
    Definition Classes
    Product
  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. val union: Effect[R, X]
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Eff[R, A]

Inherited from AnyRef

Inherited from Any

Ungrouped