all
- Source:
- all.scala
Type members
Inherited types
Value members
Inherited methods
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
- Source:
- Eff.scala
try to execute an action an report any issue
try to execute an action an report any issue
- Inherited from:
- SafeInterpretation
- Source:
- SafeEffect.scala
catch possible left values
catch possible left values
- Inherited from:
- EitherInterpretation
- Source:
- EitherEffect.scala
Attempt to execute a safe action including finalizers
Attempt to execute a safe action including finalizers
- Inherited from:
- SafeInterpretation
- Source:
- SafeEffect.scala
- Inherited from:
- Batch
- Source:
- Batch.scala
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
- Source:
- SafeEffect.scala
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
- Source:
- Eff.scala
catch and handle all wrong values
catch and handle all wrong values
- Inherited from:
- ValidateInterpretation
- Source:
- ValidateEffect.scala
catch and handle the first wrong value
catch and handle the first wrong value
- Inherited from:
- ValidateInterpretation
- Source:
- ValidateEffect.scala
catch and handle the last wrong value
catch and handle the last wrong value
- Inherited from:
- ValidateInterpretation
- Source:
- ValidateEffect.scala
catch and handle a possible left value
catch and handle a possible left value
- Inherited from:
- EitherInterpretation
- Source:
- EitherEffect.scala
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
- Source:
- EitherEffect.scala
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
- Source:
- EitherEffect.scala
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
- Source:
- SafeEffect.scala
catch and handle possible wrong values
catch and handle possible wrong values
- Inherited from:
- ValidateInterpretation
- Source:
- ValidateEffect.scala
use the internal effect as one of the stack effects
use the internal effect as one of the stack effects
- Inherited from:
- EffCreation
- Source:
- Eff.scala
create a correct value
create a correct value
- Inherited from:
- ValidateCreation
- Source:
- ValidateEffect.scala
peel-off the only present effect
peel-off the only present effect
- Inherited from:
- EffInterpretation
- Source:
- Eff.scala
peel-off the only present effect
peel-off the only present effect
- Inherited from:
- EffInterpretation
- Source:
- Eff.scala
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
- Source:
- Eff.scala
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
- Source:
- Eff.scala
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
- Source:
- Eff.scala
create a list effect with no values
create a list effect with no values
- Inherited from:
- ListCreation
- Source:
- ListEffect.scala
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
- Source:
- StateEffect.scala
run a state effect, with a Monoidal state
run a state effect, with a Monoidal state
- Inherited from:
- StateInterpretation
- Source:
- StateEffect.scala
run a safe effect but drop the finalizer errors
run a safe effect but drop the finalizer errors
- Inherited from:
- SafeInterpretation
- Source:
- SafeEffect.scala
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
- Source:
- StateEffect.scala
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
- Source:
- StateEffect.scala
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
- Source:
- Eff.scala
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
- Source:
- Eff.scala
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
- Source:
- EitherEffect.scala
create an Either effect from a single Either value
create an Either effect from a single Either value
- Inherited from:
- EitherCreation
- Source:
- EitherEffect.scala
create a list effect from a list of values
create a list effect from a list of values
- Inherited from:
- ListCreation
- Source:
- ListEffect.scala
create an Option effect from a single Option value
create an Option effect from a single Option value
- Inherited from:
- OptionCreation
- Source:
- OptionEffect.scala
get the current state value
get the current state value
- Inherited from:
- StateCreation
- Source:
- StateEffect.scala
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
- Source:
- StateEffect.scala
ignore one possible exception that could be thrown
ignore one possible exception that could be thrown
- Inherited from:
- SafeInterpretation
- Source:
- SafeEffect.scala
create a delayed impure value
create a delayed impure value
- Inherited from:
- EffCreation
- Source:
- Eff.scala
create a delayed impure value
create a delayed impure value
- Inherited from:
- EffCreation
- Source:
- Eff.scala
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
- Source:
- Eff.scala
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
- Source:
- StateEffect.scala
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
- Source:
- StateEffect.scala
modify the environment
modify the environment
- Inherited from:
- ReaderCreation
- Source:
- ReaderEffect.scala
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
- Source:
- EitherEffect.scala
modify the environment using a Kleisli[F, T, *]
modify the environment using a Kleisli[F, T, *]
- Inherited from:
- ReaderCreation
- Source:
- ReaderEffect.scala
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
- Source:
- ReaderEffect.scala
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
- Source:
- StateEffect.scala
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
- Source:
- Eff.scala
modify the current state value
modify the current state value
- Inherited from:
- StateCreation
- Source:
- StateEffect.scala
create an Either effect from a single Option value
create an Either effect from a single Option value
- Inherited from:
- EitherCreation
- Source:
- EitherEffect.scala
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
- Source:
- SafeEffect.scala
store a new state value
store a new state value
- Inherited from:
- StateCreation
- Source:
- StateEffect.scala
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
- Source:
- SafeEffect.scala
- Inherited from:
- EffCreation
- Source:
- Eff.scala
create a correct value
create a correct value
- Inherited from:
- EitherCreation
- Source:
- EitherEffect.scala
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
- Source:
- Eff.scala
- Inherited from:
- ChooseInterpretation
- Source:
- Choose.scala
run the Either effect, yielding E Either A
run the Either effect, yielding E Either A
- Inherited from:
- EitherInterpretation
- Source:
- EitherEffect.scala
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
- Source:
- EitherEffect.scala
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
- Source:
- EitherEffect.scala
- Inherited from:
- MemoInterpretation
- Source:
- MemoEffect.scala
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
- Source:
- ValidateEffect.scala
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
- Source:
- ValidateEffect.scala
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
- Source:
- ReaderEffect.scala
run an effect stack starting with a list effect
run an effect stack starting with a list effect
- Inherited from:
- ListInterpretation
- Source:
- ListEffect.scala
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
- Source:
- ValidateEffect.scala
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
- Source:
- ValidateEffect.scala
Interpret the Option effect
Interpret the Option effect
Stop all computations if None is present once
- Inherited from:
- OptionInterpretation
- Source:
- OptionEffect.scala
get the pure value if there is no effect
get the pure value if there is no effect
- Inherited from:
- EffInterpretation
- Source:
- Eff.scala
interpret the Reader effect by providing an environment when required
interpret the Reader effect by providing an environment when required
- Inherited from:
- ReaderInterpretation
- Source:
- ReaderEffect.scala
Run a safe effect
Run a safe effect
Collect finalizer exceptions if any
- Inherited from:
- SafeInterpretation
- Source:
- SafeEffect.scala
run a state effect, with an initial value
run a state effect, with an initial value
- Inherited from:
- StateInterpretation
- Source:
- StateEffect.scala
run a state effect, with an initial value
run a state effect, with an initial value
- Inherited from:
- StateInterpretation
- Source:
- StateEffect.scala
run the validate effect, yielding a ValidatedNel
run the validate effect, yielding a ValidatedNel
- Inherited from:
- ValidateInterpretation
- Source:
- ValidateEffect.scala
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
- Source:
- WriterEffect.scala
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
- Source:
- WriterEffect.scala
Run a side-effecting fold
Run a side-effecting fold
- Inherited from:
- WriterInterpretation
- Source:
- WriterEffect.scala
- Inherited from:
- SafeInterpretation
- Source:
- SafeEffect.scala
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
- Source:
- SafeEffect.scala
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
- Source:
- Eff.scala
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
- Source:
- Eff.scala
create a list effect from a single value
create a list effect from a single value
- Inherited from:
- ListCreation
- Source:
- ListEffect.scala
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
- Source:
- SafeEffect.scala
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
- Source:
- EitherEffect.scala
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
- Source:
- ReaderEffect.scala
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
- Source:
- Eff.scala
check a correct condition
check a correct condition
- Inherited from:
- ValidateCreation
- Source:
- ValidateEffect.scala
create an Validate effect from a single Either value
create an Validate effect from a single Either value
- Inherited from:
- ValidateCreation
- Source:
- ValidateEffect.scala
create an Validate effect from a single Ior value
create an Validate effect from a single Ior value
- Inherited from:
- ValidateCreation
- Source:
- ValidateEffect.scala
create an Validate effect from a single Option value
create an Validate effect from a single Option value
- Inherited from:
- ValidateCreation
- Source:
- ValidateEffect.scala
check a correct value
check a correct value
- Inherited from:
- ValidateCreation
- Source:
- ValidateEffect.scala
create a list effect from a list of values
create a list effect from a list of values
- Inherited from:
- ListCreation
- Source:
- ListEffect.scala
create a correct value with warning
create a correct value with warning
- Inherited from:
- ValidateCreation
- Source:
- ValidateEffect.scala
create a pure warning
create a pure warning
- Inherited from:
- ValidateCreation
- Source:
- ValidateEffect.scala
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
- Source:
- SafeEffect.scala
attach a clean-up action to the continuation (if any)
attach a clean-up action to the continuation (if any)
- Inherited from:
- EffCreation
- Source:
- Eff.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
- Inherited from:
- SafeInterpretation
- Source:
- SafeEffect.scala
create a failed value
create a failed value
- Inherited from:
- ValidateCreation
- Source:
- ValidateEffect.scala
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
- Source:
- EitherEffect.scala
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
- Source:
- ReaderEffect.scala
Implicits
Inherited implicits
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
- Source:
- EvalEffect.scala