all

org.atnos.eff.all

Attributes

Source
all.scala
Graph
Supertypes
Self type
all.type

Members list

Type members

Inherited types

Attributes

Inherited from:
SafeInterpretation
Source
SafeInterpretation.scala

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

Inherited from:
SafeTypes
Source
SafeTypes.scala

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

Inherited from:
SafeTypes
Source
SafeTypes.scala

Attributes

Inherited from:
EitherCreation
Source
EitherCreation.scala

Value members

Inherited methods

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

Attributes

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

Attributes

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

Attributes

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

Attributes

Inherited from:
WriterInterpretation
Source
WriterInterpretation.scala

Attributes

Inherited from:
WriterInterpretation
Source
WriterInterpretation.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
EffCreation.scala
def ask[R, T](using MemberIn[[_] =>> Reader[T, _$1], R]): Eff[R, T]

get the environment

get the environment

Attributes

Inherited from:
ReaderCreation
Source
ReaderCreation.scala
def attempt[R, A](action: Eff[R, A])(using 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
SafeInterpretation.scala
def attemptEither[R, E, A](effect: Eff[R, A])(using MemberInOut[[_] =>> Either[E, _$6], R]): Eff[R, Either[E, A]]

catch possible left values

catch possible left values

Attributes

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

Attributes

Inherited from:
EvalInterpretation
Source
EvalInterpretation.scala
def attemptSafe[R, A](effect: Eff[R, A])(using 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
SafeInterpretation.scala
def bracket[R, A, B, C](acquire: Eff[R, A])(use: A => Eff[R, B])(release: A => Eff[R, C])(using 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
SafeInterpretation.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
EffCreation.scala
def catchAllWrongs[R, E, A](effect: Eff[R, A])(handle: (NonEmptyList[E]) => Eff[R, A])(using Member[[_] =>> Validate[E, _$20], R]): Eff[R, A]

catch and handle all wrong values

catch and handle all wrong values

Attributes

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

catch and handle the first wrong value

catch and handle the first wrong value

Attributes

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

catch and handle the last wrong value

catch and handle the last wrong value

Attributes

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

catch and handle a possible left value

catch and handle a possible left value

Attributes

Inherited from:
EitherInterpretation
Source
EitherInterpretation.scala
def catchLeftCombine[R, E, A](effect: Eff[R, A])(handle: E => Eff[R, A])(using MemberInOut[[_] =>> Either[E, _$10], R], 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
EitherInterpretation.scala
def catchNonFatalThrowable[R, A](a: => A)(using 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
EitherCreation.scala
def catchThrowable[R, A, B](action: Eff[R, A], pureValue: A => B, onThrowable: Throwable => Eff[R, B])(using 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
SafeInterpretation.scala
def catchWrongs[R, E, A, S[_] : Applicative](effect: Eff[R, A])(handle: (S[E]) => Eff[R, A])(implicit evidence$1: Applicative[S], Member[[_] =>> Validate[E, _$13], R], Semigroup[S[E]]): Eff[R, A]

catch and handle possible wrong values

catch and handle possible wrong values

Attributes

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

Attributes

Inherited from:
ChooseCreation
Source
ChooseCreation.scala
def collapse[R, M[_], A](r: Eff[R, M[A]])(using 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
EffCreation.scala
def correct[R, E, A](a: A)(using MemberIn[[_] =>> Validate[E, _$10], R]): Eff[R, A]

create a correct value

create a correct value

Attributes

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

Attributes

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

Attributes

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

peel-off the only present effect

peel-off the only present effect

Attributes

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

peel-off the only present effect

peel-off the only present effect

Attributes

Inherited from:
EffInterpretation
Source
EffInterpretation.scala
def detachA[M[_], A, E](eff: Eff[Fx1[M], A])(using 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
EffInterpretation.scala
def detachA[M[_], R, A, E](eff: Eff[R, A])(using 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
EffInterpretation.scala
def effInto[R, U, A](e: Eff[R, A])(using 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
EffInterpretation.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
ListCreation.scala
def eval[R : _safe, A](a: Eval[A]): Eff[R, A]

Attributes

Inherited from:
SafeCreation
Source
SafeCreation.scala
def evalState[R, U, S, A](initial: S)(w: Eff[R, A])(using Aux[[_] =>> State[S, _$2], 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
StateInterpretation.scala
def evalStateZero[R, U, S : Monoid, A](w: Eff[R, A])(implicit evidence$1: Monoid[S], Aux[[_] =>> State[S, _$1], 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
StateInterpretation.scala
def exception[R : _safe, A](t: Throwable): Eff[R, A]

Attributes

Inherited from:
SafeCreation
Source
SafeCreation.scala
def execSafe[R, U, A](r: Eff[R, A])(using 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
SafeInterpretation.scala
def execState[R, U, S, A](initial: S)(w: Eff[R, A])(using Aux[[_] =>> State[S, _$5], 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
StateInterpretation.scala
def execStateZero[R, U, S : Monoid, A](w: Eff[R, A])(implicit evidence$1: Monoid[S], Aux[[_] =>> State[S, _$4], 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
StateInterpretation.scala

Attributes

Inherited from:
SafeCreation
Source
SafeCreation.scala
def flatSequenceA[R, F[_], A](fs: F[Eff[R, F[A]]])(using 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
EffCreation.scala
def flatTraverseA[R, F[_], A, B](fs: F[A])(f: A => Eff[R, F[B]])(using 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
EffCreation.scala
def fromCatchNonFatal[R, E, A](a: => A)(onThrowable: Throwable => E)(using MemberIn[[_] =>> Either[E, _$8], 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
EitherCreation.scala
def fromEither[R, E, A](Either: Either[E, A])(using 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
EitherCreation.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
ListCreation.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
OptionCreation.scala
def get[R, S](using MemberIn[[_] =>> State[S, _$3], R]): Eff[R, S]

get the current state value

get the current state value

Attributes

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

Attributes

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

ignore one possible exception that could be thrown

ignore one possible exception that could be thrown

Attributes

Inherited from:
SafeInterpretation
Source
SafeInterpretation.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
EffCreation.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
EffCreation.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
EffCreation.scala
def intoState[TS, SS, U1, U2, T, S, A](state: Eff[TS, A], getter: S => T, setter: (S, T) => S)(using Aux[[_] =>> State[T, _$14], TS, U1], Aux[[_] =>> State[S, _$15], SS, U2], 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
StateInterpretation.scala
def left[R, E, A](e: E)(using MemberIn[[_] =>> Either[E, _$4], R]): Eff[R, A]

create a failed value

create a failed value

Attributes

Inherited from:
EitherCreation
Source
EitherCreation.scala
def lensState[TS, SS, U, T, S, A](state: Eff[TS, A], getter: S => T, setter: (S, T) => S)(using Aux[[_] =>> State[T, _$12], TS, U], Aux[[_] =>> State[S, _$13], 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
StateInterpretation.scala
def local[R, T, U](f: T => U)(using MemberIn[[_] =>> Reader[T, _$2], R]): Eff[R, U]

modify the environment

modify the environment

Attributes

Inherited from:
ReaderCreation
Source
ReaderCreation.scala
def localEither[R, E, A](e: Eff[R, A])(modify: E => E)(using MemberInOut[[_] =>> Either[E, _$27], 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
EitherInterpretation.scala
def localKleisli[R, T, U, F[_]](f: T => F[U])(using 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
ReaderCreation.scala
def localReader[R, T, A](e: Eff[R, A])(modify: T => T)(using r: MemberInOut[[_] =>> Reader[T, _$16], 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
ReaderInterpretation.scala
def localState[R, S, A](e: Eff[R, A])(modify: S => S)(using MemberInOut[[_] =>> State[S, _$20], 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
StateInterpretation.scala
def memoize[R : _memo, A](key: AnyRef, a: => A): Eff[R, A]

Attributes

Inherited from:
MemoCreation
Source
MemoCreation.scala
def memoizeEffect[R, M[_], A](e: Eff[R, A], cache: Cache, key: AnyRef)(using 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
EffInterpretation.scala
def modify[R, S](f: S => S)(using MemberIn[[_] =>> State[S, _$7], R]): Eff[R, Unit]

modify the current state value

modify the current state value

Attributes

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

no value returned

no value returned

Attributes

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

Attributes

Inherited from:
EvalCreation
Source
EvalCreation.scala
def optionEither[R, E, A](option: Option[A], e: => E)(using 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
EitherCreation.scala
def otherwise[R, A](action: Eff[R, A], onThrowable: Eff[R, A])(using 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
SafeInterpretation.scala
def plus[R : _choose, A](a1: => Eff[R, A], a2: => Eff[R, A]): Eff[R, A]

Attributes

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

Attributes

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

create a pure value

create a pure value

Attributes

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

store a new state value

store a new state value

Attributes

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

Attributes

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

create a correct value

create a correct value

Attributes

Inherited from:
EitherCreation
Source
EitherCreation.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
EffInterpretation.scala
def runChoose[R, U, A, F[_] : Alternative](r: Eff[R, A])(implicit evidence$1: Alternative[F], m: Aux[Choose, R, U]): Eff[U, F[A]]

Attributes

Inherited from:
ChooseInterpretation
Source
ChooseInterpretation.scala
def runEither[R, U, E, A](effect: Eff[R, A])(using Aux[[_] =>> Either[E, _$1], 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
EitherInterpretation.scala
def runEitherCatchLeft[R, U, E, A](r: Eff[R, A])(handle: E => Eff[U, A])(using Aux[[_] =>> Either[E, _$8], 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
EitherInterpretation.scala
def runEitherCombine[R, U, E, A](effect: Eff[R, A])(using Aux[[_] =>> Either[E, _$2], R, U], 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
EitherInterpretation.scala
def runEval[R, U, A](effect: Eff[R, A])(using Aux[Eval, R, U]): Eff[U, A]

Attributes

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

Attributes

Inherited from:
MemoInterpretation
Source
MemoInterpretation.scala
def runIorMap[R, U, E, L : Semigroup, A](effect: Eff[R, A])(map: E => L)(implicit evidence$1: Semigroup[L], Aux[[_] =>> Validate[E, _$6], 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
ValidateInterpretation.scala
def runIorNel[R, U, E, A](r: Eff[R, A])(using Aux[[_] =>> Validate[E, _$5], 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
ValidateInterpretation.scala
def runKleisli[R, U, S, A, F[_]](env: S)(e: Eff[R, A])(using Aux[[_] =>> Kleisli[F, S, _$6], R, U], 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
ReaderInterpretation.scala
def runList[R, U, A](effect: Eff[R, A])(using 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
ListInterpretation.scala
def runMap[R, U, E, L : Semigroup, A](effect: Eff[R, A])(map: E => L)(implicit evidence$1: Semigroup[L], Aux[[_] =>> Validate[E, _$3], 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
ValidateInterpretation.scala
def runMemo[R, U, A](cache: Cache)(effect: Eff[R, A])(using Aux[Memoized, R, U], MemberIn[Eval, U]): Eff[U, A]

Attributes

Inherited from:
MemoInterpretation
Source
MemoInterpretation.scala
def runNel[R, U, E, A](r: Eff[R, A])(using Aux[[_] =>> Validate[E, _$2], 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
ValidateInterpretation.scala
def runOption[R, U, A](effect: Eff[R, A])(using 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
OptionInterpretation.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
EffInterpretation.scala
def runReader[R, U, A, B](env: A)(effect: Eff[R, B])(using Aux[[_] =>> Reader[A, _$1], 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
ReaderInterpretation.scala
def runSafe[R, U, A](effect: Eff[R, A])(using 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
SafeInterpretation.scala
def runState[R, U, S1, A](initial: S1)(w: Eff[R, A])(using Aux[[_] =>> State[S1, _$8], 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
StateInterpretation.scala
def runStateZero[R, U, S : Monoid, A](w: Eff[R, A])(implicit evidence$1: Monoid[S], Aux[[_] =>> State[S, _$7], 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
StateInterpretation.scala
def runValidatedNel[R, U, E, A](r: Eff[R, A])(using Aux[[_] =>> Validate[E, _$1], 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
ValidateInterpretation.scala
def runWriter[R, U, O, A](w: Eff[R, A])(using Aux[[_] =>> Writer[O, _$1], 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
WriterInterpretation.scala
def runWriterEval[R, U, O, A](w: Eff[R, A])(f: O => Eval[Unit])(using Aux[[_] =>> Writer[O, _$8], R, U], MemberIn[Eval, U]): Eff[U, A]

Attributes

Inherited from:
WriterInterpretation
Source
WriterInterpretation.scala
def runWriterFold[R, U, O, A, B](w: Eff[R, A])(fold: RightFold[O, B])(using Aux[[_] =>> Writer[O, _$2], 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
WriterInterpretation.scala
def runWriterIntoMonoid[R, U, O, M, A](w: Eff[R, A])(f: O => M)(using Aux[[_] =>> Writer[O, _$10], R, U], Monoid[M]): Eff[U, (A, M)]

Attributes

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

Attributes

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

Run a side-effecting fold

Run a side-effecting fold

Attributes

Inherited from:
WriterInterpretation
Source
WriterInterpretation.scala

Attributes

Inherited from:
SafeInterpretation
Source
SafeInterpretation.scala

Attributes

Inherited from:
SafeInterpretation
Source
SafeInterpretation.scala
def safeMemo[R, A](key: AnyRef, cache: Cache, e: Eff[R, A])(using 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
SafeInterpretation.scala
def send[T[_], R, V](tv: T[V])(using 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
EffCreation.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
EffCreation.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
ListCreation.scala
def some[R : _option, A](a: A): Eff[R, A]

a value is returned

a value is returned

Attributes

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

write a given value

write a given value

Attributes

Inherited from:
WriterCreation
Source
WriterCreation.scala
def thenFinally[R, A](effect: Eff[R, A], last: Eff[R, Unit])(using 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
SafeInterpretation.scala
def translateEither[R, U, E1, E2, A](r: Eff[R, A], getter: E1 => E2)(using Aux[[_] =>> Either[E1, _$24], R, U], MemberIn[[_] =>> Either[E2, _$25], 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
EitherInterpretation.scala
def translateReader[R, U, S, B, A](e: Eff[R, A], getter: B => S)(using Aux[[_] =>> Reader[S, _$8], R, U], MemberIn[[_] =>> Reader[B, _$9], 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
ReaderInterpretation.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
EffCreation.scala
def unit[R]: Eff[R, Unit]

create an Eff value for ()

create an Eff value for ()

Attributes

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

check a correct condition

check a correct condition

Attributes

Inherited from:
ValidateCreation
Source
ValidateCreation.scala
def validateEither[R, E, A](either: Either[E, A])(using 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
ValidateCreation.scala
def validateIor[R, E, A](ior: Ior[E, A])(using 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
ValidateCreation.scala
def validateOption[R, E, A](option: Option[A], e: => E)(using 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
ValidateCreation.scala
def validateValue[R, E, A](condition: Boolean, a: => A, e: => E)(using MemberIn[[_] =>> Validate[E, _$18], R]): Eff[R, A]

check a correct value

check a correct value

Attributes

Inherited from:
ValidateCreation
Source
ValidateCreation.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
ListCreation.scala
def warning[R, E, A](a: A, e: E)(using MemberIn[[_] =>> Validate[E, _$15], R]): Eff[R, A]

create a correct value with warning

create a correct value with warning

Attributes

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

create a pure warning

create a pure warning

Attributes

Inherited from:
ValidateCreation
Source
ValidateCreation.scala
def whenFailed[R, A](action: Eff[R, A], onThrowable: Throwable => Eff[R, A])(using 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
SafeInterpretation.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
EffCreation.scala

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
SafeInterpretation.scala
def wrong[R, E](e: E)(using MemberIn[[_] =>> Validate[E, _$8], R]): Eff[R, Unit]

create a failed value

create a failed value

Attributes

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

Attributes

Inherited from:
ChooseCreation
Source
ChooseCreation.scala
def zoomEither[SR, BR, U1, U2, E1, E2, A](r: Eff[SR, A], getter: E1 => E2)(using Aux[[_] =>> Either[E1, _$18], SR, U1], Aux[[_] =>> Either[E2, _$19], BR, U2], 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
EitherInterpretation.scala
def zoomReader[R1, R2, U, S, T, A](e: Eff[R1, A])(f: T => S)(using Aux[[_] =>> Reader[S, _$12], R1, U], Aux[[_] =>> Reader[T, _$13], 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
ReaderInterpretation.scala

Givens

Inherited givens

given EffMonad[R]: Monad[[_] =>> Eff[R, _$12]]

Attributes

Inherited from:
EffImplicits
Source
EffImplicits.scala
given ListFold[A]: RightFold[A, List[A]]

Attributes

Inherited from:
WriterInterpretation
Source
WriterInterpretation.scala

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
EvalInterpretation.scala