EffInterpretation

org.specs2.control.eff.EffInterpretation
See theEffInterpretation companion trait

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Inherited methods

def detach[M[_] : Monad, A](eff: Eff[Fx1[M], A]): M[A]

peel-off the only present effect

peel-off the only present effect

Attributes

Inherited from:
EffInterpretation
def detachA[M[_], A](eff: Eff[Fx1[M], A])(implicit monad: Monad[M], applicative: Applicative[M]): M[A]

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

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

Attributes

Inherited from:
EffInterpretation
def effInto[R, U, A](e: Eff[R, A])(implicit f: IntoPoly[R, U]): Eff[U, A]

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

Attributes

Inherited from:
EffInterpretation
def run[A](eff: Eff[NoFx, A]): A

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

Attributes

Inherited from:
EffInterpretation
def runPure[R, A](eff: Eff[R, A]): Option[A]

get the pure value if there is no effect

get the pure value if there is no effect

Attributes

Inherited from:
EffInterpretation