Monad parametrized by a set of requested effect. Use the !!
infix type alias instead.
Type-level set of effects is modelled with intersection types.
Type Any
means empty set.
type MyComputationType1 = String !! (MyState & MyError)
type MyComputationType2 = String !! Any
Attributes
- A
Result of the computation
- U
Type-level set of effects requested by this computation.
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Composes 2 independent computations parallelly (if possible), discarding result of the first.
Composes 2 independent computations parallelly (if possible), discarding result of the first.
Parallelism may be impossible, due to at least of one of handlers in current scope
being inherently sequential (e.g. some predefined handlers for State
or Error
).
In such case, &!
behaves like &&!
.
Attributes
Composes 2 independent computations sequentially, discarding result of the first.
Composes 2 independent computations sequentially, discarding result of the first.
Attributes
Composes 2 independent computations sequentially, discarding result of the second.
Composes 2 independent computations sequentially, discarding result of the second.
Attributes
Composes 2 independent computations parallelly (if possible), discarding result of the second.
Composes 2 independent computations parallelly (if possible), discarding result of the second.
Parallelism may be impossible, due to at least of one of handlers in current scope
being inherently sequential (e.g. some predefined handlers for State
or Error
).
In such case, &<!
behaves like &&<!
.
Attributes
Applies plus
operation from the innermost Choice
effect in the current scope.
Applies plus
operation from the innermost Choice
effect in the current scope.
Similar to <|>
operator of Alternative
.
Attributes
Discards the result, and replaces it by given pure value.
Discards the result, and replaces it by given pure value.
Attributes
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns:
a string representation of the object.
- Definition Classes
- Any
Widens the set of requested effects.
Widens the set of requested effects.
Attributes
Discards the result, and replaces it by Unit
.
Discards the result, and replaces it by Unit
.
Attributes
Applies filter, using fail
operation from the innermost Choice
effect in the current scope.
Applies filter, using fail
operation from the innermost Choice
effect in the current scope.
Attributes
Composes 2 independent computations sequentially
Composes 2 independent computations sequentially
Attributes
Composes 2 independent computations parallelly (if possible).
Composes 2 independent computations parallelly (if possible).
Parallelism may be impossible, due to at least of one of handlers in current scope
being inherently sequential (e.g. some predefined handlers for State
or Error
).
In such case, zipPar
behaves like zip
.
Attributes
Inherited methods
Simplifies effectful creation of handlers (handlers that depend on other effects).
Simplifies effectful creation of handlers (handlers that depend on other effects).
Passes computed value to handler constructor. Effect used to compute the value, are absorbed as handler's dependencies.
Attributes
- Inherited from:
- ComputationExtensions (hidden)
Attributes
- Inherited from:
- ComputationExtensions (hidden)
Attributes
- Inherited from:
- ComputationExtensions (hidden)
Simplifies effectful creation of handlers (handlers that depend on other effects).
Simplifies effectful creation of handlers (handlers that depend on other effects).
Same as Handler.flatHandle(this)
.
Attributes
- Inherited from:
- ComputationExtensions (hidden)
Applies a handler to this computation.
Applies a handler to this computation.
Same as myHandler.handle(this)
.
Attributes
- Inherited from:
- ComputationExtensions (hidden)
Like if
statement, but the condition and the body are computations.
Like if
statement, but the condition and the body are computations.
Attributes
- Inherited from:
- ComputationExtensions (hidden)
Attributes
- Inherited from:
- ComputationExtensions (hidden)
Runs the computation, provided that it requests no effects.
Runs the computation, provided that it requests no effects.
Attributes
- Inherited from:
- ComputationExtensions (hidden)
Runs the computation, provided that it requests IO effect only, or none at all.
Runs the computation, provided that it requests IO effect only, or none at all.
Attributes
- Inherited from:
- ComputationExtensions (hidden)
Like while
statement, but the condition and the body are computations.
Like while
statement, but the condition and the body are computations.
Attributes
- Inherited from:
- ComputationExtensions (hidden)
Like while
statement, but the condition and the body are computations.
Like while
statement, but the condition and the body are computations.
Attributes
- Inherited from:
- ComputationExtensions (hidden)