Packages

object Eval extends EvalInstances with Serializable

Source
Eval.scala
Linear Supertypes
Serializable, Serializable, EvalInstances, EvalInstances0, EvalInstances1, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Eval
  2. Serializable
  3. Serializable
  4. EvalInstances
  5. EvalInstances0
  6. EvalInstances1
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed abstract class Defer[A] extends Eval[A]

    Defer is a type of Eval[A] that is used to defer computations which produce Eval[A].

    Defer is a type of Eval[A] that is used to defer computations which produce Eval[A].

    Users should not instantiate Defer instances themselves. Instead, they will be automatically created when needed.

  2. sealed abstract class FlatMap[A] extends Eval[A]

    FlatMap is a type of Eval[A] that is used to chain computations involving .map and .flatMap.

    FlatMap is a type of Eval[A] that is used to chain computations involving .map and .flatMap. Along with Eval#flatMap it implements the trampoline that guarantees stack-safety.

    Users should not instantiate FlatMap instances themselves. Instead, they will be automatically created when needed.

    Unlike a traditional trampoline, the internal workings of the trampoline are not exposed. This allows a slightly more efficient implementation of the .value method.

  3. sealed abstract class Leaf[A] extends Eval[A]

    A Leaf does not depend on any other Eval so calling .value does not trigger any flatMaps or defers

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val False: Eval[Boolean]

    Static Eval instance for common value false.

    Static Eval instance for common value false.

    This can be useful in cases where the same value may be needed many times.

  5. val One: Eval[Int]

    Static Eval instance for common value 1.

    Static Eval instance for common value 1.

    This can be useful in cases where the same value may be needed many times.

  6. val True: Eval[Boolean]

    Static Eval instance for common value true.

    Static Eval instance for common value true.

    This can be useful in cases where the same value may be needed many times.

  7. val Unit: Eval[Unit]

    Static Eval instance for common value Unit.

    Static Eval instance for common value Unit.

    This can be useful in cases where the same value may be needed many times.

  8. val Zero: Eval[Int]

    Static Eval instance for common value 0.

    Static Eval instance for common value 0.

    This can be useful in cases where the same value may be needed many times.

  9. def always[A](a: ⇒ A): Eval[A]

    Construct a lazy Eval[A] value without caching (i.e.

    Construct a lazy Eval[A] value without caching (i.e. Always[A]).

  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. implicit val catsBimonadForEval: Bimonad[Eval] with CommutativeMonad[Eval]
    Definition Classes
    EvalInstances
  12. implicit val catsDeferForEval: cats.Defer[Eval]
    Definition Classes
    EvalInstances
  13. implicit def catsEqForEval[A](implicit arg0: Eq[A]): Eq[Eval[A]]
    Definition Classes
    EvalInstances1
  14. implicit def catsGroupForEval[A](implicit arg0: Group[A]): Group[Eval[A]]
    Definition Classes
    EvalInstances
  15. implicit def catsMonoidForEval[A](implicit arg0: Monoid[A]): Monoid[Eval[A]]
    Definition Classes
    EvalInstances0
  16. implicit def catsOrderForEval[A](implicit arg0: Order[A]): Order[Eval[A]]
    Definition Classes
    EvalInstances
  17. implicit def catsPartialOrderForEval[A](implicit arg0: PartialOrder[A]): PartialOrder[Eval[A]]
    Definition Classes
    EvalInstances0
  18. implicit val catsReducibleForEval: Reducible[Eval]
    Definition Classes
    EvalInstances
  19. implicit val catsRepresentableForEval: Aux[Eval, Unit]
    Definition Classes
    EvalInstances
  20. implicit def catsSemigroupForEval[A](implicit arg0: Semigroup[A]): Semigroup[Eval[A]]
    Definition Classes
    EvalInstances1
  21. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  22. def defer[A](a: ⇒ Eval[A]): Eval[A]

    Defer a computation which produces an Eval[A] value.

    Defer a computation which produces an Eval[A] value.

    This is useful when you want to delay execution of an expression which produces an Eval[A] value. Like .flatMap, it is stack-safe.

  23. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  25. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  26. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. def later[A](a: ⇒ A): Eval[A]

    Construct a lazy Eval[A] value with caching (i.e.

    Construct a lazy Eval[A] value with caching (i.e. Later[A]).

  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  32. def now[A](a: A): Eval[A]

    Construct an eager Eval[A] value (i.e.

    Construct an eager Eval[A] value (i.e. Now[A]).

  33. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  34. def toString(): String
    Definition Classes
    AnyRef → Any
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Serializable

Inherited from EvalInstances

Inherited from EvalInstances0

Inherited from EvalInstances1

Inherited from AnyRef

Inherited from Any

Ungrouped