Monad implementation for the Eff[R, ?] type
Monad implementation for the Eff[R, ?] type
evaluate 1 action possibly having error effects execute a second action whether the first is successful or not but keep track of finalizer exceptions
evaluate 1 action possibly having error effects execute a second action whether the first is successful or not but keep track of finalizer exceptions
apply a function to an Eff value using the applicative instance
apply a function to an Eff value using the applicative instance
get the environment
get the environment
try to execute an action an report any issue
try to execute an action an report any issue
Attempt to execute a safe action including finalizers
Attempt to execute a safe action including finalizers
catch and handle a possible left value
catch and handle a possible left value
evaluate 1 action possibly having error effects
evaluate 1 action possibly having error effects
Execute a second action if the first one is not successful, based on the error
catch and handle possible wrong values
catch and handle possible wrong values
use the internal effect as one of the stack effects
use the internal effect as one of the stack effects
create a correct value
create a correct value
peel-off the only present effect
peel-off the only present effect
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
create a list effect with no values
create a list effect with no values
run a state effect, with an initial value, return only the value
run a state effect, with an initial value, return only the value
run a state effect, with a Monoidal state
run a state effect, with a Monoidal state
run a safe effect but drop the finalizer errors
run a safe effect but drop the finalizer errors
run a state effect, with an initial value, return only the state
run a state effect, with an initial value, return only the state
run a state effect, with a monoidal state, return only the state
run a state effect, with a monoidal state, return only the state
create a list effect from a list of values
create a list effect from a list of values
create an Option effect from a single Option value
create an Option effect from a single Option value
create an Xor effect from a single Xor value
create an Xor effect from a single Xor value
get the current state value
get the current state value
get the current state value and map it with a function f
get the current state value and map it with a function f
ignore one possible exception that could be thrown
ignore one possible exception that could be thrown
create a impure value from an union of effects and a continuation
create a impure value from an union of effects and a continuation
create a failed value
create a failed value
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)
modify the environment
modify the environment
Lift a computation over a "small" reader (for a subsystem) into a computation over a "bigger" reader (for the full application)
Lift a computation over a "small" reader (for a subsystem) into a computation over a "bigger" reader (for the full application)
Lift a computation over a "small" error (for a subsystem) into a computation over a "bigger" error (for the full application)
Lift a computation over a "small" error (for a subsystem) into a computation over a "bigger" error (for the full application)
modify the current state value
modify the current state value
Modify the read value
Modify the read value
no value returned
no value returned
create an Xor effect from a single Option value
create an Xor effect from a single Option value
evaluate 1 action possibly having error effects
evaluate 1 action possibly having error effects
Execute a second action if the first one is not successful
create a pure value
create a pure value
store a new state value
store a new state value
create a correct value
create a correct value
base runner for an Eff value having no effects at all
base runner for an Eff value having no effects at all
This runner can only return the value in Pure because it doesn't known how to interpret the effects in Impure
run the xor effect, yielding Either[E, A]
run the xor effect, yielding Either[E, A]
run an effect stack starting with a list effect
run an effect stack starting with a list effect
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)
run the validate effect, yielding a list of failures Xor A
run the validate effect, yielding a list of failures Xor A
run the validate effect, yielding a non-empty list of failures Xor A
run the validate effect, yielding a non-empty list of failures Xor A
Interpret the Option effect
Interpret the Option effect
Stop all computations if None is present once
get the pure value if there is no effect
get the pure value if there is no effect
interpret the Reader effect by providing an environment when required
interpret the Reader effect by providing an environment when required
Run a safe effect
Run a safe effect
Collect finalizer exceptions if any
run a state effect, with an initial value
run a state effect, with an initial value
run a state effect, with an initial value
run a state effect, with an initial value
run the validate effect, yielding a ValidatedNel
run the validate effect, yielding a ValidatedNel
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
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
Run a side-effecting fold
Run a side-effecting fold
run the xor effect, yielding E Xor A
run the xor effect, yielding E Xor A
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
use the applicative instance of Eff to sequenc a list of values
use the applicative instance of Eff to sequenc a list of values
create a list effect from a single value
create a list effect from a single value
a value is returned
a value is returned
write a given value
write a given value
use the applicative instance of Eff to traverse a list of values
use the applicative instance of Eff to traverse a list of values
create an Eff value for ()
create an Eff value for ()
check a correct condition
check a correct condition
create an Validate effect from a single Option value
create an Validate effect from a single Option value
check a correct value
check a correct value
create an Validate effect from a single Xor value
create an Validate effect from a single Xor value
create a list effect from a list of values
create a list effect from a list of values
evaluate 1 action possibly throwing exceptions
evaluate 1 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
create a failed value
create a failed value