eff

object eff extends EffCreation with EffInterpretation
class Object
trait Matchable
class Any
eff.type

Value members

Inherited methods

def ap[R, A, B](a: Eff[R, A])(f: Eff[R, A => B]): Eff[R, B]

apply a function to an Eff value using the applicative instance

apply a function to an Eff value using the applicative instance

Inherited from:
EffCreation
def collapse[R, M[_], A](r: Eff[R, M[A]])(implicit m: MemberIn[M, R]): Eff[R, A]

use the internal effect as one of the stack effects

use the internal effect as one of the stack effects

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

peel-off the only present effect

peel-off the only present effect

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

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

Inherited from:
EffInterpretation
def flatTraverseA[R, F[_], A, B](fs: F[A])(f: A => Eff[R, F[B]])(implicit FT: Traverse[F], FM: Monad[F]): Eff[R, F[B]]

use the applicative instance of Eff to traverse a list of values, then flatten it

use the applicative instance of Eff to traverse a list of values, then flatten it

Inherited from:
EffCreation
def impure[R, X, A](union: Union[R, X], continuation: Arrs[R, X, A]): Eff[R, A]

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

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

Inherited from:
EffCreation
def pure[R, A](a: A): Eff[R, A]

create a pure value

create a pure value

Inherited from:
EffCreation
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

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

Inherited from:
EffInterpretation
def send[T[_], R, V](tv: T[V])(implicit member: MemberIn[T, R]): Eff[R, V]

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

Inherited from:
EffCreation
def sequenceA[R, F[_] : Traverse, A](fs: F[Eff[R, A]]): Eff[R, F[A]]

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

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

Inherited from:
EffCreation
def traverseA[R, F[_] : Traverse, A, B](fs: F[A])(f: A => Eff[R, B]): Eff[R, F[B]]

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

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

Inherited from:
EffCreation
def unit[R]: Eff[R, Unit]

create an Eff value for ()

create an Eff value for ()

Inherited from:
EffCreation