all

org.atnos.eff.all$

Attributes

Source:
all.scala
Graph
Supertypes
Self type
all.type

Members list

Concise view

Type members

Inherited types

Attributes

Inherited from:
SafeInterpretation
Source:
SafeEffect.scala

Attributes

Inherited from:
EitherCreation
Source:
EitherEffect.scala
type _Choose[R] = Member[Choose, R]

Attributes

Inherited from:
ChooseCreation
Source:
Choose.scala
type _Eval[R] = Member[Eval, R]

Attributes

Inherited from:
EvalTypes
Source:
EvalEffect.scala
type _List[R] = Member[List, R]

Attributes

Inherited from:
ListCreation
Source:
ListEffect.scala
type _Memo[R] = Member[Memoized, R]

Attributes

Inherited from:
MemoTypes
Source:
MemoEffect.scala
type _Option[R] = Member[Option, R]

Attributes

Inherited from:
OptionCreation
Source:
OptionEffect.scala
type _Safe[R] = Member[Safe, R]

Attributes

Inherited from:
SafeTypes
Source:
SafeEffect.scala

Attributes

Inherited from:
EitherCreation
Source:
EitherEffect.scala
type _choose[R] = MemberIn[Choose, R]

Attributes

Inherited from:
ChooseCreation
Source:
Choose.scala
type _eval[R] = MemberIn[Eval, R]

Attributes

Inherited from:
EvalTypes
Source:
EvalEffect.scala
type _list[R] = MemberIn[List, R]

Attributes

Inherited from:
ListCreation
Source:
ListEffect.scala
type _memo[R] = MemberIn[Memoized, R]

Attributes

Inherited from:
MemoTypes
Source:
MemoEffect.scala
type _option[R] = MemberIn[Option, R]

Attributes

Inherited from:
OptionCreation
Source:
OptionEffect.scala
type _safe[R] = MemberIn[Safe, R]

Attributes

Inherited from:
SafeTypes
Source:
SafeEffect.scala

Attributes

Inherited from:
EitherCreation
Source:
EitherEffect.scala

Value members

Inherited methods

final def EffApplicative[R]: Applicative[[_] =>> Eff[R, _$14]]

Attributes

Inherited from:
EffImplicits
Source:
Eff.scala
def EitherApplicative[E](implicit s: Semigroup[E]): Applicative[[_] =>> Either[E, _$36]]

Attributes

Inherited from:
EitherInterpretation
Source:
EitherEffect.scala
def EvalFold[A](f: A => Eval[Unit]): RightFold[A, Eval[Unit]]

Attributes

Inherited from:
WriterInterpretation
Source:
WriterEffect.scala
def IntoMonoidFold[M : Monoid, A](f: A => M): RightFold[A, M]

Attributes

Inherited from:
WriterInterpretation
Source:
WriterEffect.scala
def MonoidFold[A : Monoid]: RightFold[A, A]

Attributes

Inherited from:
WriterInterpretation
Source:
WriterEffect.scala
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

Attributes

Inherited from:
EffCreation
Source:
Eff.scala
def ask[R, T](implicit member: MemberIn[[_] =>> Reader[T, _$1], R]): Eff[R, T]

get the environment

get the environment

Attributes

Inherited from:
ReaderCreation
Source:
ReaderEffect.scala
def attempt[R, A](action: Eff[R, A])(implicit m: MemberInOut[Safe, R]): Eff[R, Either[Throwable, A]]

try to execute an action an report any issue

try to execute an action an report any issue

Attributes

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

catch possible left values

catch possible left values

Attributes

Inherited from:
EitherInterpretation
Source:
EitherEffect.scala
def attemptEval[R, U, A](effect: Eff[R, A])(implicit m: Aux[Eval, R, U]): Eff[U, Either[Throwable, A]]

Attributes

Inherited from:
EvalInterpretation
Source:
EvalEffect.scala
def attemptSafe[R, A](effect: Eff[R, A])(implicit m: MemberInOut[Safe, R]): Eff[R, (ThrowableEither[A], List[Throwable])]

Attempt to execute a safe action including finalizers

Attempt to execute a safe action including finalizers

Attributes

Inherited from:
SafeInterpretation
Source:
SafeEffect.scala
def batch[R, T[_], A](eff: Eff[R, A])(implicit batchable: Batchable[T], m: MemberInOut[T, R]): Eff[R, A]

Attributes

Inherited from:
Batch
Source:
Batch.scala
def bracket[R, A, B, C](acquire: Eff[R, A])(use: A => Eff[R, B])(release: A => Eff[R, C])(implicit m: MemberInOut[Safe, 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

Attributes

Inherited from:
SafeInterpretation
Source:
SafeEffect.scala
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

Attributes

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

catch and handle all wrong values

catch and handle all wrong values

Attributes

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

catch and handle the first wrong value

catch and handle the first wrong value

Attributes

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

catch and handle the last wrong value

catch and handle the last wrong value

Attributes

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

catch and handle a possible left value

catch and handle a possible left value

Attributes

Inherited from:
EitherInterpretation
Source:
EitherEffect.scala
def catchLeftCombine[R, E, A](effect: Eff[R, A])(handle: E => Eff[R, A])(implicit 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

Attributes

Inherited from:
EitherInterpretation
Source:
EitherEffect.scala
def catchNonFatalThrowable[R, A](a: => A)(implicit 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

Attributes

Inherited from:
EitherCreation
Source:
EitherEffect.scala
def catchThrowable[R, A, B](action: Eff[R, A], pureValue: A => B, onThrowable: Throwable => Eff[R, B])(implicit m: MemberInOut[Safe, 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

Attributes

Inherited from:
SafeInterpretation
Source:
SafeEffect.scala
def catchWrongs[R, E, A, S[_] : Applicative](effect: Eff[R, A])(handle: S[E] => Eff[R, A])(implicit 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

Attributes

Inherited from:
ValidateInterpretation
Source:
ValidateEffect.scala
def chooseFrom[R : _choose, A](as: List[A]): Eff[R, A]

Attributes

Inherited from:
ChooseCreation
Source:
Choose.scala
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

Attributes

Inherited from:
EffCreation
Source:
Eff.scala
def correct[R, E, A](a: A)(implicit m: MemberIn[[_] =>> Validate[E, _$10], R]): Eff[R, A]

create a correct value

create a correct value

Attributes

Inherited from:
ValidateCreation
Source:
ValidateEffect.scala
def defer[R : _eval, A](eff: => Eval[Eff[R, A]]): Eff[R, A]

Attributes

Inherited from:
EvalCreation
Source:
EvalEffect.scala
def delay[R : _eval, A](a: => A): Eff[R, A]

Attributes

Inherited from:
EvalCreation
Source:
EvalEffect.scala
def detach[M[_], A, E](eff: Eff[Fx1[M], A])(implicit monad: MonadError[M, E]): M[A]

peel-off the only present effect

peel-off the only present effect

Attributes

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

peel-off the only present effect

peel-off the only present effect

Attributes

Inherited from:
EffInterpretation
Source:
Eff.scala
def detachA[M[_], A, E](eff: Eff[Fx1[M], A])(implicit 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

Attributes

Inherited from:
EffInterpretation
Source:
Eff.scala
def detachA[M[_], R, A, E](eff: Eff[R, A])(implicit 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

Attributes

Inherited from:
EffInterpretation
Source:
Eff.scala
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
Source:
Eff.scala
def empty[R : _list, A]: Eff[R, A]

create a list effect with no values

create a list effect with no values

Attributes

Inherited from:
ListCreation
Source:
ListEffect.scala
def eval[R : _safe, A](a: Eval[A]): Eff[R, A]

Attributes

Inherited from:
SafeCreation
Source:
SafeEffect.scala
def evalState[R, U, S, A](initial: S)(w: Eff[R, A])(implicit 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

Attributes

Inherited from:
StateInterpretation
Source:
StateEffect.scala
def evalStateZero[R, U, S : Monoid, A](w: Eff[R, A])(implicit 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

Attributes

Inherited from:
StateInterpretation
Source:
StateEffect.scala
def exception[R : _safe, A](t: Throwable): Eff[R, A]

Attributes

Inherited from:
SafeCreation
Source:
SafeEffect.scala
def execSafe[R, U, A](r: Eff[R, A])(implicit m: Aux[Safe, R, U]): Eff[U, ThrowableEither[A]]

run a safe effect but drop the finalizer errors

run a safe effect but drop the finalizer errors

Attributes

Inherited from:
SafeInterpretation
Source:
SafeEffect.scala
def execState[R, U, S, A](initial: S)(w: Eff[R, A])(implicit 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

Attributes

Inherited from:
StateInterpretation
Source:
StateEffect.scala
def execStateZero[R, U, S : Monoid, A](w: Eff[R, A])(implicit 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

Attributes

Inherited from:
StateInterpretation
Source:
StateEffect.scala

Attributes

Inherited from:
SafeCreation
Source:
SafeEffect.scala
def flatSequenceA[R, F[_], A](fs: F[Eff[R, F[A]]])(implicit 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

Attributes

Inherited from:
EffCreation
Source:
Eff.scala
def flatTraverseA[R, F[_], A, B](fs: F[A])(f: A => Eff[R, F[B]])(implicit 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

Attributes

Inherited from:
EffCreation
Source:
Eff.scala
def fromCatchNonFatal[R, E, A](a: => A)(onThrowable: Throwable => E)(implicit 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

Attributes

Inherited from:
EitherCreation
Source:
EitherEffect.scala
def fromEither[R, E, A](Either: Either[E, A])(implicit 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

Attributes

Inherited from:
EitherCreation
Source:
EitherEffect.scala
def fromList[R : _list, A](as: List[A]): Eff[R, A]

create a list effect from a list of values

create a list effect from a list of values

Attributes

Inherited from:
ListCreation
Source:
ListEffect.scala
def fromOption[R : _option, A](o: Option[A]): Eff[R, A]

create an Option effect from a single Option value

create an Option effect from a single Option value

Attributes

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

get the current state value

get the current state value

Attributes

Inherited from:
StateCreation
Source:
StateEffect.scala
def getCache[R : _memo]: Eff[R, Cache]

Attributes

Inherited from:
MemoCreation
Source:
MemoEffect.scala
def gets[R, S, T](f: S => T)(implicit 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

Attributes

Inherited from:
StateCreation
Source:
StateEffect.scala
def ignoreException[R, E <: Throwable : ClassTag, A](action: Eff[R, A])(implicit evidence$5: ClassTag[E], m: MemberInOut[Safe, R]): Eff[R, Unit]

ignore one possible exception that could be thrown

ignore one possible exception that could be thrown

Attributes

Inherited from:
SafeInterpretation
Source:
SafeEffect.scala
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

Attributes

Inherited from:
EffCreation
Source:
Eff.scala
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

Attributes

Inherited from:
EffCreation
Source:
Eff.scala
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

Attributes

Inherited from:
EffCreation
Source:
Eff.scala
def intoState[TS, SS, U1, U2, T, S, A](state: Eff[TS, A], getter: S => T, setter: (S, T) => S)(implicit 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

Attributes

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

create a failed value

create a failed value

Attributes

Inherited from:
EitherCreation
Source:
EitherEffect.scala
def lensState[TS, SS, U, T, S, A](state: Eff[TS, A], getter: S => T, setter: (S, T) => S)(implicit 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)

Attributes

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

modify the environment

modify the environment

Attributes

Inherited from:
ReaderCreation
Source:
ReaderEffect.scala
def localEither[R, E, A](e: Eff[R, A])(modify: E => E)(implicit 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

Attributes

Inherited from:
EitherInterpretation
Source:
EitherEffect.scala
def localKleisli[R, T, U, F[_]](f: T => F[U])(implicit 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, *]

Attributes

Inherited from:
ReaderCreation
Source:
ReaderEffect.scala
def localReader[R, T, A](e: Eff[R, A])(modify: T => T)(implicit 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

Attributes

Inherited from:
ReaderInterpretation
Source:
ReaderEffect.scala
def localState[R, S, A](e: Eff[R, A])(modify: S => S)(implicit 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

Attributes

Inherited from:
StateInterpretation
Source:
StateEffect.scala
def memoize[R : _memo, A](key: AnyRef, a: => A): Eff[R, A]

Attributes

Inherited from:
MemoCreation
Source:
MemoEffect.scala
def memoizeEffect[R, M[_], A](e: Eff[R, A], cache: Cache, key: AnyRef)(implicit 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

Attributes

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

modify the current state value

modify the current state value

Attributes

Inherited from:
StateCreation
Source:
StateEffect.scala
def none[R : _option, A]: Eff[R, A]

no value returned

no value returned

Attributes

Inherited from:
OptionCreation
Source:
OptionEffect.scala
def now[R : _eval, A](a: A): Eff[R, A]

Attributes

Inherited from:
EvalCreation
Source:
EvalEffect.scala
def optionEither[R, E, A](option: Option[A], e: => E)(implicit 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

Attributes

Inherited from:
EitherCreation
Source:
EitherEffect.scala
def otherwise[R, A](action: Eff[R, A], onThrowable: Eff[R, A])(implicit m: MemberInOut[Safe, 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

Attributes

Inherited from:
SafeInterpretation
Source:
SafeEffect.scala
def plus[R : _choose, A](a1: => Eff[R, A], a2: => Eff[R, A]): Eff[R, A]

Attributes

Inherited from:
ChooseCreation
Source:
Choose.scala
def protect[R : _safe, A](a: => A): Eff[R, A]

Attributes

Inherited from:
SafeCreation
Source:
SafeEffect.scala
def pure[R, A](a: A): Eff[R, A]

create a pure value

create a pure value

Attributes

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

store a new state value

store a new state value

Attributes

Inherited from:
StateCreation
Source:
StateEffect.scala
def recoverThrowable[R, A, B](action: Eff[R, A], pureValue: A => B, onThrowable: PartialFunction[Throwable, Eff[R, B]])(implicit m: MemberInOut[Safe, 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

Attributes

Inherited from:
SafeInterpretation
Source:
SafeEffect.scala
def retryUntil[R, A](e: Eff[R, A], condition: A => Boolean, durations: List[FiniteDuration], waitFor: FiniteDuration => Eff[R, Unit]): Eff[R, A]

Attributes

Inherited from:
EffCreation
Source:
Eff.scala
def right[R, E, A](a: A)(implicit member: MemberIn[[_] =>> Either[E, _$5], R]): Eff[R, A]

create a correct value

create a correct value

Attributes

Inherited from:
EitherCreation
Source:
EitherEffect.scala
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

Attributes

Inherited from:
EffInterpretation
Source:
Eff.scala
def runChoose[R, U, A, F[_] : Alternative](r: Eff[R, A])(implicit evidence$4: Alternative[F], m: Aux[Choose, R, U]): Eff[U, F[A]]

Attributes

Inherited from:
ChooseInterpretation
Source:
Choose.scala
def runEither[R, U, E, A](effect: Eff[R, A])(implicit 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

Attributes

Inherited from:
EitherInterpretation
Source:
EitherEffect.scala
def runEitherCatchLeft[R, U, E, A](r: Eff[R, A])(handle: E => Eff[U, A])(implicit 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

Attributes

Inherited from:
EitherInterpretation
Source:
EitherEffect.scala
def runEitherCombine[R, U, E, A](effect: Eff[R, A])(implicit 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

Attributes

Inherited from:
EitherInterpretation
Source:
EitherEffect.scala
def runEval[R, U, A](effect: Eff[R, A])(implicit m: Aux[Eval, R, U]): Eff[U, A]

Attributes

Inherited from:
EvalInterpretation
Source:
EvalEffect.scala
def runFutureMemo[R, U, A](cache: Cache)(effect: Eff[R, A])(implicit m: Aux[Memoized, R, U], future: MemberIn[TimedFuture, U]): Eff[U, A]

Attributes

Inherited from:
MemoInterpretation
Source:
MemoEffect.scala
def runIorMap[R, U, E, L : Semigroup, A](effect: Eff[R, A])(map: E => L)(implicit 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

Attributes

Inherited from:
ValidateInterpretation
Source:
ValidateEffect.scala
def runIorNel[R, U, E, A](r: Eff[R, A])(implicit 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

Attributes

Inherited from:
ValidateInterpretation
Source:
ValidateEffect.scala
def runKleisli[R, U, S, A, F[_]](env: S)(e: Eff[R, A])(implicit 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

Attributes

Inherited from:
ReaderInterpretation
Source:
ReaderEffect.scala
def runList[R, U, A](effect: Eff[R, A])(implicit 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

Attributes

Inherited from:
ListInterpretation
Source:
ListEffect.scala
def runMap[R, U, E, L : Semigroup, A](effect: Eff[R, A])(map: E => L)(implicit 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

Attributes

Inherited from:
ValidateInterpretation
Source:
ValidateEffect.scala
def runMemo[R, U, A](cache: Cache)(effect: Eff[R, A])(implicit m: Aux[Memoized, R, U], eval: MemberIn[Eval, U]): Eff[U, A]

Attributes

Inherited from:
MemoInterpretation
Source:
MemoEffect.scala
def runNel[R, U, E, A](r: Eff[R, A])(implicit 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

Attributes

Inherited from:
ValidateInterpretation
Source:
ValidateEffect.scala
def runOption[R, U, A](effect: Eff[R, A])(implicit m: Aux[Option, R, U]): Eff[U, Option[A]]

Interpret the Option effect

Interpret the Option effect

Stop all computations if None is present once

Attributes

Inherited from:
OptionInterpretation
Source:
OptionEffect.scala
final 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
Source:
Eff.scala
def runReader[R, U, A, B](env: A)(effect: Eff[R, B])(implicit 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

Attributes

Inherited from:
ReaderInterpretation
Source:
ReaderEffect.scala
def runSafe[R, U, A](effect: Eff[R, A])(implicit m: Aux[Safe, R, U]): Eff[U, (ThrowableEither[A], List[Throwable])]

Run a safe effect

Run a safe effect

Collect finalizer exceptions if any

Attributes

Inherited from:
SafeInterpretation
Source:
SafeEffect.scala
def runState[R, U, S1, A](initial: S1)(w: Eff[R, A])(implicit 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

Attributes

Inherited from:
StateInterpretation
Source:
StateEffect.scala
def runStateZero[R, U, S : Monoid, A](w: Eff[R, A])(implicit 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

Attributes

Inherited from:
StateInterpretation
Source:
StateEffect.scala
def runValidatedNel[R, U, E, A](r: Eff[R, A])(implicit 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

Attributes

Inherited from:
ValidateInterpretation
Source:
ValidateEffect.scala
def runWriter[R, U, O, A, B](w: Eff[R, A])(implicit 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

Attributes

Inherited from:
WriterInterpretation
Source:
WriterEffect.scala
def runWriterEval[R, U, O, A](w: Eff[R, A])(f: O => Eval[Unit])(implicit m: Aux[[_] =>> Writer[O, _$10], R, U], ev: MemberIn[Eval, U]): Eff[U, A]

Attributes

Inherited from:
WriterInterpretation
Source:
WriterEffect.scala
def runWriterFold[R, U, O, A, B](w: Eff[R, A])(fold: RightFold[O, B])(implicit 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

Attributes

Inherited from:
WriterInterpretation
Source:
WriterEffect.scala
def runWriterIntoMonoid[R, U, O, M, A](w: Eff[R, A])(f: O => M)(implicit m: Aux[[_] =>> Writer[O, _$12], R, U], M: Monoid[M]): Eff[U, (A, M)]

Attributes

Inherited from:
WriterInterpretation
Source:
WriterEffect.scala
def runWriterMonoid[R, U, O, A](w: Eff[R, A])(implicit m: Aux[[_] =>> Writer[O, _$11], R, U], O: Monoid[O]): Eff[U, (A, O)]

Attributes

Inherited from:
WriterInterpretation
Source:
WriterEffect.scala
def runWriterUnsafe[R, U, O, A](w: Eff[R, A])(f: O => Unit)(implicit m: Aux[[_] =>> Writer[O, _$7], R, U]): Eff[U, A]

Run a side-effecting fold

Run a side-effecting fold

Attributes

Inherited from:
WriterInterpretation
Source:
WriterEffect.scala
def safeInterpreter[R, A](last: Option[(Eff[R, Unit], MemberInOut[Safe, R])]): Interpreter[Safe, R, A, (A)]

Attributes

Inherited from:
SafeInterpretation
Source:
SafeEffect.scala
def safeInterpreter[R, A]: Interpreter[Safe, R, A, (A)]

Attributes

Inherited from:
SafeInterpretation
Source:
SafeEffect.scala
def safeMemo[R, A](key: AnyRef, cache: Cache, e: Eff[R, A])(implicit safe: MemberInOut[Safe, 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

Attributes

Inherited from:
SafeInterpretation
Source:
SafeEffect.scala
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

Attributes

Inherited from:
EffCreation
Source:
Eff.scala
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

Attributes

Inherited from:
EffCreation
Source:
Eff.scala
def singleton[R : _list, A](a: A): Eff[R, A]

create a list effect from a single value

create a list effect from a single value

Attributes

Inherited from:
ListCreation
Source:
ListEffect.scala
def some[R : _option, A](a: A): Eff[R, A]

a value is returned

a value is returned

Attributes

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

write a given value

write a given value

Attributes

Inherited from:
WriterCreation
Source:
WriterEffect.scala
def thenFinally[R, A](effect: Eff[R, A], last: Eff[R, Unit])(implicit m: MemberInOut[Safe, 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

Attributes

Inherited from:
SafeInterpretation
Source:
SafeEffect.scala
def translateEither[R, U, E1, E2, A](r: Eff[R, A], getter: E1 => E2)(implicit 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)

Attributes

Inherited from:
EitherInterpretation
Source:
EitherEffect.scala
def translateReader[R, U, S, B, A](e: Eff[R, A], getter: B => S)(implicit 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

Attributes

Inherited from:
ReaderInterpretation
Source:
ReaderEffect.scala
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

Attributes

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

create an Eff value for ()

create an Eff value for ()

Attributes

Inherited from:
EffCreation
Source:
Eff.scala
def validateCheck[R, E](condition: Boolean, e: => E)(implicit m: MemberIn[[_] =>> Validate[E, _$15], R]): Eff[R, Unit]

check a correct condition

check a correct condition

Attributes

Inherited from:
ValidateCreation
Source:
ValidateEffect.scala
def validateEither[R, E, A](either: Either[E, A])(implicit 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

Attributes

Inherited from:
ValidateCreation
Source:
ValidateEffect.scala
def validateIor[R, E, A](ior: Ior[E, A])(implicit 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

Attributes

Inherited from:
ValidateCreation
Source:
ValidateEffect.scala
def validateOption[R, E, A](option: Option[A], e: => E)(implicit 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

Attributes

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

check a correct value

check a correct value

Attributes

Inherited from:
ValidateCreation
Source:
ValidateEffect.scala
def values[R : _list, A](as: A*): Eff[R, A]

create a list effect from a list of values

create a list effect from a list of values

Attributes

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

create a correct value with warning

create a correct value with warning

Attributes

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

create a pure warning

create a pure warning

Attributes

Inherited from:
ValidateCreation
Source:
ValidateEffect.scala
def whenFailed[R, A](action: Eff[R, A], onThrowable: Throwable => Eff[R, A])(implicit m: MemberInOut[Safe, 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

Attributes

Inherited from:
SafeInterpretation
Source:
SafeEffect.scala
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)

Attributes

Inherited from:
EffCreation
Source:
Eff.scala
def whenThrowable[R, A](action: Eff[R, A], onThrowable: PartialFunction[Throwable, Eff[R, A]])(implicit m: MemberInOut[Safe, 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

Attributes

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

create a failed value

create a failed value

Attributes

Inherited from:
ValidateCreation
Source:
ValidateEffect.scala
def zero[R : _choose, A]: Eff[R, A]

Attributes

Inherited from:
ChooseCreation
Source:
Choose.scala
def zoomEither[SR, BR, U1, U2, E1, E2, A](r: Eff[SR, A], getter: E1 => E2)(implicit 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

Attributes

Inherited from:
EitherInterpretation
Source:
EitherEffect.scala
def zoomReader[R1, R2, U, S, T, A](e: Eff[R1, A])(f: T => S)(implicit 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

Attributes

Inherited from:
ReaderInterpretation
Source:
ReaderEffect.scala

Implicits

Inherited implicits

final implicit def EffMonad[R]: Monad[[_] =>> Eff[R, _$12]]

Attributes

Inherited from:
EffImplicits
Source:
Eff.scala
implicit def ListFold[A]: RightFold[A, List[A]]

Attributes

Inherited from:
WriterInterpretation
Source:
WriterEffect.scala
final implicit val monadErrorEval: MonadError[Eval, 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]

Attributes

Inherited from:
EvalInterpretation
Source:
EvalEffect.scala