all

Type members

Inherited types

type Out[A] = (ThrowableEither[A], List[Throwable])
Inherited from
SafeInterpretation
type ThrowableEither[A] = Either[Throwable, A]
Inherited from
EitherCreation
type _Choose[R] = Member[[T] =>> Choose[T], R]
Inherited from
ChooseCreation
type _Eval[R] = Member[[A] =>> Eval[A], R]
Inherited from
EvalTypes
type _List[R] = Member[List, R]
Inherited from
ListCreation
type _Memo[R] = Member[[A] =>> Memoized[A], R]
Inherited from
MemoTypes
type _Option[R] = Member[[A] =>> Option[A], R]
Inherited from
OptionCreation
type _Safe[R] = Member[[A] =>> Safe[A], R]
Inherited from
SafeTypes
type _choose[R] = MemberIn[[T] =>> Choose[T], R]
Inherited from
ChooseCreation
type _eval[R] = MemberIn[[A] =>> Eval[A], R]
Inherited from
EvalTypes
type _list[R] = MemberIn[List, R]
Inherited from
ListCreation
type _memo[R] = MemberIn[[A] =>> Memoized[A], R]
Inherited from
MemoTypes
type _option[R] = MemberIn[[A] =>> Option[A], R]
Inherited from
OptionCreation
type _safe[R] = MemberIn[[A] =>> Safe[A], R]
Inherited from
SafeTypes

Value members

Inherited methods

final def EffApplicative[R]: Applicative[[_] =>> Eff[R, _$16]]
Inherited from
EffImplicits
def EitherApplicative[E](s: Semigroup[E]): Applicative[[_] =>> Either[E, _$36]]
Inherited from
EitherInterpretation
def EvalFold[A](f: A => Eval[Unit]): RightFold[A, Eval[Unit]]
Inherited from
WriterInterpretation
def IntoMonoidFold[M, A](f: A => M)(`evidence$1`: Monoid[M]): RightFold[A, M]
Inherited from
WriterInterpretation
def MonoidFold[A](`evidence$2`: Monoid[A]): RightFold[A, A]
Inherited from
WriterInterpretation
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 ask[R, T](member: MemberIn[[_] =>> Reader[T, _$1], R]): Eff[R, T]

get the environment

get the environment

Inherited from
ReaderCreation
def attempt[R, A](action: Eff[R, A])(m: MemberInOut[[A] =>> Safe[A], R]): Eff[R, Either[Throwable, A]]

try to execute an action an report any issue

try to execute an action an report any issue

Inherited from
SafeInterpretation
def attemptEither[R, E, A](effect: Eff[R, A])(member: MemberInOut[[_] =>> Either[E, _$12], R]): Eff[R, Either[E, A]]

catch possible left values

catch possible left values

Inherited from
EitherInterpretation
def attemptEval[R, U, A](effect: Eff[R, A])(m: Aux[[A] =>> Eval[A], R, U]): Eff[U, Either[Throwable, A]]
Inherited from
EvalInterpretation
def attemptSafe[R, A](effect: Eff[R, A])(m: MemberInOut[[A] =>> Safe[A], R]): Eff[R, (ThrowableEither[A], List[Throwable])]

Attempt to execute a safe action including finalizers

Attempt to execute a safe action including finalizers

Inherited from
SafeInterpretation
def batch[R, T[_], A](eff: Eff[R, A])(batchable: Batchable[T], m: MemberInOut[T, R]): Eff[R, A]
Inherited from
Batch
def bracket[R, A, B, C](acquire: Eff[R, A])(use: A => Eff[R, B])(release: A => Eff[R, C])(m: MemberInOut[[A] =>> Safe[A], R]): Eff[R, B]

get a resource A and use it. Call the release function whether an exception is thrown or not when using the resource

get a resource A and use it. Call the release function whether an exception is thrown or not when using the resource

NOTE: Eff interpreters are independent so if there is an effect short-circuiting all computations inside 'use', like Option or Either then the release function will not be called. If you want to make sure that the release function is always called "at the end of the world and whatever happens" you need to call Eff.bracketLast

Inherited from
SafeInterpretation
def bracketLast[R, A, B, C](acquire: Eff[R, A])(use: A => Eff[R, B])(release: A => Eff[R, C]): Eff[R, B]

bracket an action with one last action to execute at the end of the program

bracket an action with one last action to execute at the end of the program

Inherited from
EffCreation
def catchAllWrongs[R, E, A](effect: Eff[R, A])(handle: NonEmptyList[E] => Eff[R, A])(member: Member[[_] =>> Validate[E, _$36], R]): Eff[R, A]

catch and handle all wrong values

catch and handle all wrong values

Inherited from
ValidateInterpretation
def catchFirstWrong[R, E, A](effect: Eff[R, A])(handle: E => Eff[R, A])(member: Member[[_] =>> Validate[E, _$32], R]): Eff[R, A]

catch and handle the first wrong value

catch and handle the first wrong value

Inherited from
ValidateInterpretation
def catchLastWrong[R, E, A](effect: Eff[R, A])(handle: E => Eff[R, A])(member: Member[[_] =>> Validate[E, _$34], R]): Eff[R, A]

catch and handle the last wrong value

catch and handle the last wrong value

Inherited from
ValidateInterpretation
def catchLeft[R, E, A](effect: Eff[R, A])(handle: E => Eff[R, A])(member: MemberInOut[[_] =>> Either[E, _$13], R]): Eff[R, A]

catch and handle a possible left value

catch and handle a possible left value

Inherited from
EitherInterpretation
def catchLeftCombine[R, E, A](effect: Eff[R, A])(handle: E => Eff[R, A])(member: MemberInOut[[_] =>> Either[E, _$16], R], s: Semigroup[E]): Eff[R, A]

catch and handle a possible left value. The value is the combination of all failures in case of an applicative

catch and handle a possible left value. The value is the combination of all failures in case of an applicative

Inherited from
EitherInterpretation
def catchNonFatalThrowable[R, A](a: => A)(member: MemberIn[ThrowableEither, R]): Eff[R, A]

create an Either effect from a value possibly throwing a Throwable

create an Either effect from a value possibly throwing a Throwable

Inherited from
EitherCreation
def catchThrowable[R, A, B](action: Eff[R, A], pureValue: A => B, onThrowable: Throwable => Eff[R, B])(m: MemberInOut[[A] =>> Safe[A], R]): Eff[R, B]

evaluate first action possibly having error effects

evaluate first action possibly having error effects

Execute a second action if the first one is not successful, based on the error

Inherited from
SafeInterpretation
def catchWrongs[R, E, A, S[_]](effect: Eff[R, A])(handle: S[E] => Eff[R, A])(`evidence$4`: Applicative[S], member: Member[[_] =>> Validate[E, _$29], R], semi: Semigroup[S[E]]): Eff[R, A]

catch and handle possible wrong values

catch and handle possible wrong values

Inherited from
ValidateInterpretation
def chooseFrom[R, A](as: List[A])(`evidence$3`: _choose[R]): Eff[R, A]
Inherited from
ChooseCreation
def collapse[R, M[_], A](r: Eff[R, M[A]])(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 correct[R, E, A](a: A)(m: MemberIn[[_] =>> Validate[E, _$10], R]): Eff[R, A]

create a correct value

create a correct value

Inherited from
ValidateCreation
def defer[R, A](eff: => Eval[Eff[R, A]])(`evidence$3`: _eval[R]): Eff[R, A]
Inherited from
EvalCreation
def delay[R, A](a: => A)(`evidence$2`: _eval[R]): Eff[R, A]
Inherited from
EvalCreation
def detach[M[_], A, E](eff: Eff[Fx1[M], A])(monad: MonadError[M, E]): M[A]

peel-off the only present effect

peel-off the only present effect

Inherited from
EffInterpretation
def detach[M[_], R, A, E](eff: Eff[R, A])(monad: MonadError[M, E], m: Aux[M, R, NoFx]): M[A]

peel-off the only present effect

peel-off the only present effect

Inherited from
EffInterpretation
def detachA[M[_], A, E](eff: Eff[Fx1[M], A])(monad: MonadError[M, E], 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 detachA[M[_], R, A, E](eff: Eff[R, A])(monad: MonadError[M, E], applicative: Applicative[M], member: Aux[M, R, NoFx]): 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])(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 empty[R, A](`evidence$1`: _list[R]): Eff[R, A]

create a list effect with no values

create a list effect with no values

Inherited from
ListCreation
def eval[R, A](a: Eval[A])(`evidence$2`: _safe[R]): Eff[R, A]
Inherited from
SafeCreation
def evalState[R, U, S, A](initial: S)(w: Eff[R, A])(m: Aux[[_] =>> State[S, _$20], R, U]): Eff[U, A]

run a state effect, with an initial value, return only the value

run a state effect, with an initial value, return only the value

Inherited from
StateInterpretation
def evalStateZero[R, U, S, A](w: Eff[R, A])(`evidence$1`: Monoid[S], m: Aux[[_] =>> State[S, _$19], R, U]): Eff[U, A]

run a state effect, with a Monoidal state

run a state effect, with a Monoidal state

Inherited from
StateInterpretation
def exception[R, A](t: Throwable)(`evidence$3`: _safe[R]): Eff[R, A]
Inherited from
SafeCreation
def execSafe[R, U, A](r: Eff[R, A])(m: Aux[[A] =>> Safe[A], R, U]): Eff[U, ThrowableEither[A]]

run a safe effect but drop the finalizer errors

run a safe effect but drop the finalizer errors

Inherited from
SafeInterpretation
def execState[R, U, S, A](initial: S)(w: Eff[R, A])(m: Aux[[_] =>> State[S, _$23], R, U]): Eff[U, S]

run a state effect, with an initial value, return only the state

run a state effect, with an initial value, return only the state

Inherited from
StateInterpretation
def execStateZero[R, U, S, A](w: Eff[R, A])(`evidence$2`: Monoid[S], m: Aux[[_] =>> State[S, _$22], R, U]): Eff[U, S]

run a state effect, with a monoidal state, return only the state

run a state effect, with a monoidal state, return only the state

Inherited from
StateInterpretation
def finalizerException[R](t: Throwable)(`evidence$4`: _safe[R]): Eff[R, Unit]
Inherited from
SafeCreation
def flatSequenceA[R, F[_], A](fs: F[Eff[R, F[A]]])(FT: Traverse[F], FM: FlatMap[F]): Eff[R, F[A]]

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

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

Inherited from
EffCreation
def flatTraverseA[R, F[_], A, B](fs: F[A])(f: A => Eff[R, F[B]])(FT: Traverse[F], FM: FlatMap[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 fromCatchNonFatal[R, E, A](a: => A)(onThrowable: Throwable => E)(member: MemberIn[[_] =>> Either[E, _$7], R]): Eff[R, A]

create an Either effect from a value possibly throwing an exception

create an Either effect from a value possibly throwing an exception

Inherited from
EitherCreation
def fromEither[R, E, A](Either: Either[E, A])(member: MemberIn[[_] =>> Either[E, _$2], R]): Eff[R, A]

create an Either effect from a single Either value

create an Either effect from a single Either value

Inherited from
EitherCreation
def fromList[R, A](as: List[A])(`evidence$4`: _list[R]): Eff[R, A]

create a list effect from a list of values

create a list effect from a list of values

Inherited from
ListCreation
def fromOption[R, A](o: Option[A])(`evidence$1`: _option[R]): Eff[R, A]

create an Option effect from a single Option value

create an Option effect from a single Option value

Inherited from
OptionCreation
def get[R, S](member: MemberIn[[_] =>> State[S, _$3], R]): Eff[R, S]

get the current state value

get the current state value

Inherited from
StateCreation
def getCache[R](`evidence$2`: _memo[R]): Eff[R, Cache]
Inherited from
MemoCreation
def gets[R, S, T](f: S => T)(member: MemberIn[[_] =>> State[S, _$5], R]): Eff[R, T]

get the current state value and map it with a function f

get the current state value and map it with a function f

Inherited from
StateCreation
def ignoreException[R, E <: Throwable, A](action: Eff[R, A])(`evidence$5`: ClassTag[E], m: MemberInOut[[A] =>> Safe[A], R]): Eff[R, Unit]

ignore one possible exception that could be thrown

ignore one possible exception that could be thrown

Inherited from
SafeInterpretation
def impure[R, A, B](value: A, continuation: Continuation[R, A, B], map: B => B): Eff[R, B]

create a delayed impure value

create a delayed impure value

Inherited from
EffCreation
def impure[R, A, B](value: A, continuation: Continuation[R, A, B]): Eff[R, B]

create a delayed impure value

create a delayed impure value

Inherited from
EffCreation
def impure[R, X, A](union: Union[R, X], continuation: Continuation[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 intoState[TS, SS, U1, U2, T, S, A](state: Eff[TS, A], getter: S => T, setter: (S, T) => S)(ts: Aux[[_] =>> State[T, _$32], TS, U1], ss: Aux[[_] =>> State[S, _$33], SS, U2], into: IntoPoly[U1, U2]): Eff[SS, A]

General lifting of a state effect into another from one stack to another. This will require a type annotation

General lifting of a state effect into another from one stack to another. This will require a type annotation

Inherited from
StateInterpretation
def left[R, E, A](e: E)(member: MemberIn[[_] =>> Either[E, _$3], R]): Eff[R, A]

create a failed value

create a failed value

Inherited from
EitherCreation
def lensState[TS, SS, U, T, S, A](state: Eff[TS, A], getter: S => T, setter: (S, T) => S)(ts: Aux[[_] =>> State[T, _$30], TS, U], ss: Aux[[_] =>> State[S, _$31], SS, U]): Eff[SS, A]

Lift a computation over a "small" state (for a subsystem) into a computation over a "bigger" state (for the full application state)

Lift a computation over a "small" state (for a subsystem) into a computation over a "bigger" state (for the full application state)

Inherited from
StateInterpretation
def local[R, T, U](f: T => U)(member: MemberIn[[_] =>> Reader[T, _$2], R]): Eff[R, U]

modify the environment

modify the environment

Inherited from
ReaderCreation
def localEither[R, E, A](e: Eff[R, A])(modify: E => E)(m: MemberInOut[[_] =>> Either[E, _$33], R]): Eff[R, A]

Update the error value, the stack of the Eff computation stays the same

Update the error value, the stack of the Eff computation stays the same

Inherited from
EitherInterpretation
def localKleisli[R, T, U, F[_]](f: T => F[U])(member: MemberIn[[_] =>> Kleisli[F, T, _$5], R]): Eff[R, U]

modify the environment using a Kleisli[F, T, *]

modify the environment using a Kleisli[F, T, *]

Inherited from
ReaderCreation
def localReader[R, T, A](e: Eff[R, A])(modify: T => T)(r: MemberInOut[[_] =>> Reader[T, _$22], R]): Eff[R, A]

Update the read value, the stack of the Eff computation stays the same

Update the read value, the stack of the Eff computation stays the same

Inherited from
ReaderInterpretation
def localState[R, S, A](e: Eff[R, A])(modify: S => S)(s: MemberInOut[[_] =>> State[S, _$38], R]): Eff[R, A]

Update the state value, the stack of the Eff computation stays the same

Update the state value, the stack of the Eff computation stays the same

Inherited from
StateInterpretation
def memoize[R, A](key: AnyRef, a: => A)(`evidence$1`: _memo[R]): Eff[R, A]
Inherited from
MemoCreation
def memoizeEffect[R, M[_], A](e: Eff[R, A], cache: Cache, key: AnyRef)(member: MemberInOut[M, R], cached: SequenceCached[M]): Eff[R, A]

Memoize an effect using a cache

Memoize an effect using a cache

all the consecutive effects M[X] leading to the computation of Eff[R, A] will be cached in the cache and retrieved from there if the Eff[R, A] computation is executed again

Inherited from
EffInterpretation
def modify[R, S](f: S => S)(member: MemberIn[[_] =>> State[S, _$7], R]): Eff[R, Unit]

modify the current state value

modify the current state value

Inherited from
StateCreation
def none[R, A](`evidence$2`: _option[R]): Eff[R, A]

no value returned

no value returned

Inherited from
OptionCreation
def now[R, A](a: A)(`evidence$1`: _eval[R]): Eff[R, A]
Inherited from
EvalCreation
def optionEither[R, E, A](option: Option[A], e: => E)(member: MemberIn[[_] =>> Either[E, _$1], R]): Eff[R, A]

create an Either effect from a single Option value

create an Either effect from a single Option value

Inherited from
EitherCreation
def otherwise[R, A](action: Eff[R, A], onThrowable: Eff[R, A])(m: MemberInOut[[A] =>> Safe[A], R]): Eff[R, A]

evaluate first action possibly having exceptions

evaluate first action possibly having exceptions

Execute a second action if the first one is not successful

Inherited from
SafeInterpretation
def plus[R, A](a1: => Eff[R, A], a2: => Eff[R, A])(`evidence$2`: _choose[R]): Eff[R, A]
Inherited from
ChooseCreation
def protect[R, A](a: => A)(`evidence$1`: _safe[R]): Eff[R, A]
Inherited from
SafeCreation
def pure[R, A](a: A): Eff[R, A]

create a pure value

create a pure value

Inherited from
EffCreation
def put[R, S](s: S)(member: MemberIn[[_] =>> State[S, _$1], R]): Eff[R, Unit]

store a new state value

store a new state value

Inherited from
StateCreation
def recoverThrowable[R, A, B](action: Eff[R, A], pureValue: A => B, onThrowable: PartialFunction[Throwable, Eff[R, B]])(m: MemberInOut[[A] =>> Safe[A], R]): Eff[R, B]

evaluate first action possibly having error effects

evaluate first action possibly having error effects

Execute a second action if the first one is not successful and second is defined for the error

Inherited from
SafeInterpretation
def retryUntil[R, A](e: Eff[R, A], condition: A => Boolean, durations: List[FiniteDuration], waitFor: FiniteDuration => Eff[R, Unit]): Eff[R, A]
Inherited from
EffCreation
def right[R, E, A](a: A)(member: MemberIn[[_] =>> Either[E, _$5], R]): Eff[R, A]

create a correct value

create a correct value

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

base runner for an Eff value having no effects at all the execution is trampolined using Eval

base runner for an Eff value having no effects at all the execution is trampolined using Eval

Inherited from
EffInterpretation
def runChoose[R, U, A, F[_]](r: Eff[R, A])(`evidence$4`: Alternative[F], m: Aux[[T] =>> Choose[T], R, U]): Eff[U, F[A]]
Inherited from
ChooseInterpretation
def runEither[R, U, E, A](effect: Eff[R, A])(m: Aux[[_] =>> Either[E, _$8], R, U]): Eff[U, Either[E, A]]

run the Either effect, yielding E Either A

run the Either effect, yielding E Either A

Inherited from
EitherInterpretation
def runEitherCatchLeft[R, U, E, A](r: Eff[R, A])(handle: E => Eff[U, A])(m: Aux[[_] =>> Either[E, _$14], R, U]): Eff[U, A]

run the Either effect, handling E (with effects) and yielding A

run the Either effect, handling E (with effects) and yielding A

Inherited from
EitherInterpretation
def runEitherCombine[R, U, E, A](effect: Eff[R, A])(m: Aux[[_] =>> Either[E, _$9], R, U], s: Semigroup[E]): Eff[U, Either[E, A]]

run the Either effect, yielding E Either A and combine all Es

run the Either effect, yielding E Either A and combine all Es

Inherited from
EitherInterpretation
def runEval[R, U, A](effect: Eff[R, A])(m: Aux[[A] =>> Eval[A], R, U]): Eff[U, A]
Inherited from
EvalInterpretation
def runFutureMemo[R, U, A](cache: Cache)(effect: Eff[R, A])(m: Aux[[A] =>> Memoized[A], R, U], future: MemberIn[[A] =>> TimedFuture[A], U]): Eff[U, A]
Inherited from
MemoInterpretation
def runIorMap[R, U, E, L, A](effect: Eff[R, A])(map: E => L)(`evidence$2`: Semigroup[L], m: Aux[[_] =>> Validate[E, _$22], R, U]): Eff[U, Ior[L, A]]

run the validate effect, yielding a list of failures or A or both

run the validate effect, yielding a list of failures or A or both

Inherited from
ValidateInterpretation
def runIorNel[R, U, E, A](r: Eff[R, A])(m: Aux[[_] =>> Validate[E, _$21], R, U]): Eff[U, IorNel[E, A]]

run the validate effect, yielding a non-empty list of failures or A or both

run the validate effect, yielding a non-empty list of failures or A or both

Inherited from
ValidateInterpretation
def runKleisli[R, U, S, A, F[_]](env: S)(e: Eff[R, A])(mx: Aux[[_] =>> Kleisli[F, S, _$12], R, U], m: MemberIn[F, U]): Eff[U, A]

interpret the Kleisli effect by providing an environment when required and translating the resulting target effect into the same stack

interpret the Kleisli effect by providing an environment when required and translating the resulting target effect into the same stack

Inherited from
ReaderInterpretation
def runList[R, U, A](effect: Eff[R, A])(m: Aux[List, R, U]): Eff[U, List[A]]

run an effect stack starting with a list effect

run an effect stack starting with a list effect

Inherited from
ListInterpretation
def runMap[R, U, E, L, A](effect: Eff[R, A])(map: E => L)(`evidence$1`: Semigroup[L], m: Aux[[_] =>> Validate[E, _$19], R, U]): Eff[U, Either[L, A]]

run the validate effect, yielding a list of failures Either A

run the validate effect, yielding a list of failures Either A

Inherited from
ValidateInterpretation
def runMemo[R, U, A](cache: Cache)(effect: Eff[R, A])(m: Aux[[A] =>> Memoized[A], R, U], eval: MemberIn[[A] =>> Eval[A], U]): Eff[U, A]
Inherited from
MemoInterpretation
def runNel[R, U, E, A](r: Eff[R, A])(m: Aux[[_] =>> Validate[E, _$18], R, U]): Eff[U, Either[NonEmptyList[E], A]]

run the validate effect, yielding a non-empty list of failures Either A

run the validate effect, yielding a non-empty list of failures Either A

Inherited from
ValidateInterpretation
def runOption[R, U, A](effect: Eff[R, A])(m: Aux[[A] =>> Option[A], R, U]): Eff[U, Option[A]]

Interpret the Option effect

Interpret the Option effect

Stop all computations if None is present once

Inherited from
OptionInterpretation
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 runReader[R, U, A, B](env: A)(effect: Eff[R, B])(m: Aux[[_] =>> Reader[A, _$7], R, U]): Eff[U, B]

interpret the Reader effect by providing an environment when required

interpret the Reader effect by providing an environment when required

Inherited from
ReaderInterpretation
def runSafe[R, U, A](effect: Eff[R, A])(m: Aux[[A] =>> Safe[A], R, U]): Eff[U, (ThrowableEither[A], List[Throwable])]

Run a safe effect

Run a safe effect

Collect finalizer exceptions if any

Inherited from
SafeInterpretation
def runState[R, U, S1, A](initial: S1)(w: Eff[R, A])(m: Aux[[_] =>> State[S1, _$26], R, U]): Eff[U, (A, S1)]

run a state effect, with an initial value

run a state effect, with an initial value

Inherited from
StateInterpretation
def runStateZero[R, U, S, A](w: Eff[R, A])(`evidence$3`: Monoid[S], m: Aux[[_] =>> State[S, _$25], R, U]): Eff[U, (A, S)]

run a state effect, with an initial value

run a state effect, with an initial value

Inherited from
StateInterpretation
def runValidatedNel[R, U, E, A](r: Eff[R, A])(m: Aux[[_] =>> Validate[E, _$17], R, U]): Eff[U, ValidatedNel[E, A]]

run the validate effect, yielding a ValidatedNel

run the validate effect, yielding a ValidatedNel

Inherited from
ValidateInterpretation
def runWriter[R, U, O, A, B](w: Eff[R, A])(m: Aux[[_] =>> Writer[O, _$3], R, U]): Eff[U, (A, List[O])]

run a writer effect and return the list of written values

run a writer effect and return the list of written values

This uses a ListBuffer internally to append values

Inherited from
WriterInterpretation
def runWriterEval[R, U, O, A](w: Eff[R, A])(f: O => Eval[Unit])(m: Aux[[_] =>> Writer[O, _$10], R, U], ev: MemberIn[[A] =>> Eval[A], U]): Eff[U, A]
Inherited from
WriterInterpretation
def runWriterFold[R, U, O, A, B](w: Eff[R, A])(fold: RightFold[O, B])(m: Aux[[_] =>> Writer[O, _$4], R, U]): Eff[U, (A, B)]

More general fold of runWriter where we can use a fold to accumulate values in a mutable buffer

More general fold of runWriter where we can use a fold to accumulate values in a mutable buffer

Inherited from
WriterInterpretation
def runWriterIntoMonoid[R, U, O, M, A](w: Eff[R, A])(f: O => M)(m: Aux[[_] =>> Writer[O, _$12], R, U], M: Monoid[M]): Eff[U, (A, M)]
Inherited from
WriterInterpretation
def runWriterMonoid[R, U, O, A](w: Eff[R, A])(m: Aux[[_] =>> Writer[O, _$11], R, U], O: Monoid[O]): Eff[U, (A, O)]
Inherited from
WriterInterpretation
def runWriterUnsafe[R, U, O, A](w: Eff[R, A])(f: O => Unit)(m: Aux[[_] =>> Writer[O, _$7], R, U]): Eff[U, A]

Run a side-effecting fold

Run a side-effecting fold

Inherited from
WriterInterpretation
def safeInterpreter[R, A](last: Option[(Eff[R, Unit], MemberInOut[[A] =>> Safe[A], R])]): Interpreter[[A] =>> Safe[A], R, A, (A)]
Inherited from
SafeInterpretation
def safeInterpreter[R, A]: Interpreter[[A] =>> Safe[A], R, A, (A)]
Inherited from
SafeInterpretation
def safeMemo[R, A](key: AnyRef, cache: Cache, e: Eff[R, A])(safe: MemberInOut[[A] =>> Safe[A], R]): Eff[R, A]

Memoize safe effects using a cache

Memoize safe effects using a cache

if this method is called with the same key the previous value will be returned

Inherited from
SafeInterpretation
def send[T[_], R, V](tv: T[V])(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[_], A](fs: F[Eff[R, A]])(`evidence$2`: Traverse[F]): 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 singleton[R, A](a: A)(`evidence$2`: _list[R]): Eff[R, A]

create a list effect from a single value

create a list effect from a single value

Inherited from
ListCreation
def some[R, A](a: A)(`evidence$3`: _option[R]): Eff[R, A]

a value is returned

a value is returned

Inherited from
OptionCreation
def tell[R, O](o: O)(member: MemberIn[[_] =>> Writer[O, _$1], R]): Eff[R, Unit]

write a given value

write a given value

Inherited from
WriterCreation
def thenFinally[R, A](effect: Eff[R, A], last: Eff[R, Unit])(m: MemberInOut[[A] =>> Safe[A], R]): Eff[R, A]

evaluate first action possibly having error effects execute a second action whether the first is successful or not but keep track of finalizer exceptions

evaluate first action possibly having error effects execute a second action whether the first is successful or not but keep track of finalizer exceptions

Inherited from
SafeInterpretation
def translateEither[R, U, E1, E2, A](r: Eff[R, A], getter: E1 => E2)(sr: Aux[[_] =>> Either[E1, _$30], R, U], br: MemberIn[[_] =>> Either[E2, _$31], U]): Eff[U, A]

Translate an error effect to another one in the same stack a computation over a "bigger" error (for the full application)

Translate an error effect to another one in the same stack a computation over a "bigger" error (for the full application)

Inherited from
EitherInterpretation
def translateReader[R, U, S, B, A](e: Eff[R, A], getter: B => S)(sr: Aux[[_] =>> Reader[S, _$14], R, U], br: MemberIn[[_] =>> Reader[B, _$15], U]): Eff[U, A]

Interpret a Reader effect by using another Reader effect in the same stack

Interpret a Reader effect by using another Reader effect in the same stack

Inherited from
ReaderInterpretation
def traverseA[R, F[_], A, B](fs: F[A])(f: A => Eff[R, B])(`evidence$1`: Traverse[F]): 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
def validateCheck[R, E](condition: Boolean, e: => E)(m: MemberIn[[_] =>> Validate[E, _$15], R]): Eff[R, Unit]

check a correct condition

check a correct condition

Inherited from
ValidateCreation
def validateEither[R, E, A](either: Either[E, A])(m: MemberIn[[_] =>> Validate[E, _$3], R]): Eff[R, Unit]

create an Validate effect from a single Either value

create an Validate effect from a single Either value

Inherited from
ValidateCreation
def validateIor[R, E, A](ior: Ior[E, A])(m: MemberIn[[_] =>> Validate[E, _$5], R]): Eff[R, Unit]

create an Validate effect from a single Ior value

create an Validate effect from a single Ior value

Inherited from
ValidateCreation
def validateOption[R, E, A](option: Option[A], e: => E)(m: MemberIn[[_] =>> Validate[E, _$1], R]): Eff[R, Unit]

create an Validate effect from a single Option value

create an Validate effect from a single Option value

Inherited from
ValidateCreation
def validateValue[R, E, A](condition: Boolean, a: => A, e: => E)(m: MemberIn[[_] =>> Validate[E, _$16], R]): Eff[R, A]

check a correct value

check a correct value

Inherited from
ValidateCreation
def values[R, A](as: A*)(`evidence$3`: _list[R]): Eff[R, A]

create a list effect from a list of values

create a list effect from a list of values

Inherited from
ListCreation
def warning[R, E, A](a: A, e: E)(m: MemberIn[[_] =>> Validate[E, _$14], R]): Eff[R, A]

create a correct value with warning

create a correct value with warning

Inherited from
ValidateCreation
def warning[R, E](e: E)(m: MemberIn[[_] =>> Validate[E, _$12], R]): Eff[R, Unit]

create a pure warning

create a pure warning

Inherited from
ValidateCreation
def whenFailed[R, A](action: Eff[R, A], onThrowable: Throwable => Eff[R, A])(m: MemberInOut[[A] =>> Safe[A], R]): Eff[R, A]

evaluate first action possibly throwing exceptions

evaluate first action possibly throwing exceptions

Execute a second action if the first one is not successful, based on the exception

The final value type is the same as the original type

Inherited from
SafeInterpretation
def whenStopped[R, A](e: Eff[R, A], action: Last[R]): Eff[R, A]

attach a clean-up action to the continuation (if any)

attach a clean-up action to the continuation (if any)

Inherited from
EffCreation
def whenThrowable[R, A](action: Eff[R, A], onThrowable: PartialFunction[Throwable, Eff[R, A]])(m: MemberInOut[[A] =>> Safe[A], R]): Eff[R, A]

evaluate first action possibly throwing exceptions

evaluate first action possibly throwing exceptions

Execute a second action if the first one is not successful and second is defined for the error

The final value type is the same as the original type

Inherited from
SafeInterpretation
def wrong[R, E](e: E)(m: MemberIn[[_] =>> Validate[E, _$8], R]): Eff[R, Unit]

create a failed value

create a failed value

Inherited from
ValidateCreation
def zero[R, A](`evidence$1`: _choose[R]): Eff[R, A]
Inherited from
ChooseCreation
def zoomEither[SR, BR, U1, U2, E1, E2, A](r: Eff[SR, A], getter: E1 => E2)(sr: Aux[[_] =>> Either[E1, _$24], SR, U1], br: Aux[[_] =>> Either[E2, _$25], BR, U2], into: IntoPoly[U1, U2]): Eff[BR, A]

Modify the type of the read value

Modify the type of the read value

This changes the stack of the Eff computation

Inherited from
EitherInterpretation
def zoomReader[R1, R2, U, S, T, A](e: Eff[R1, A])(f: T => S)(readerS: Aux[[_] =>> Reader[S, _$18], R1, U], readerT: Aux[[_] =>> Reader[T, _$19], R2, U]): Eff[R2, A]

Modify the type of the read value

Modify the type of the read value

This changes the stack of the Eff computation

Inherited from
ReaderInterpretation

Deprecated and Inherited methods

@deprecated("Use catchFirstWrong or more general catchWrongs instead", "5.4.2")
def catchWrong[R, E, A](effect: Eff[R, A])(handle: E => Eff[R, A])(member: Member[[_] =>> Validate[E, _$37], R]): Eff[R, A]

catch and handle possible wrong values

catch and handle possible wrong values

Deprecated
Inherited from
ValidateInterpretation
@deprecated(message = "use EffApplicative", since = "")
final def effApplicativeUnsafe: Applicative[[_] =>> Eff[AnyRef, _$6]]
Deprecated
[Since version ] use EffApplicative
Inherited from
EffImplicits
@deprecated(message = "use EffMonad", since = "")
final def effMonadUnsafe: Monad[[_] =>> Eff[AnyRef, _$3]]
Deprecated
[Since version ] use EffMonad
Inherited from
EffImplicits

Implicits

Inherited implicits

final implicit def EffMonad[R]: Monad[[_] =>> Eff[R, _$14]]
Inherited from
EffImplicits
implicit def ListFold[A]: RightFold[A, List[A]]
Inherited from
WriterInterpretation
final implicit val monadErrorEval: MonadError[[A] =>> Eval[A], Throwable]

the monad error instance for Eval is useful for using detach on Eff[Fx1[Eval], A]

the monad error instance for Eval is useful for using detach on Eff[Fx1[Eval], A]

Inherited from
EvalInterpretation