PolyGraph

trait PolyGraph[K, V] extends Effect[PolyGraphSig[K, V]] with PolyGraphSig[K, V]
trait PolyGraphSig[K, V]
trait Effect[PolyGraphSig[K, V]]
trait HasSignature
trait Signature
class Object
trait Matchable
class Any
PolyGraph[K, V]

Type members

Classlikes

final class AtApply(k: K)

Inherited classlikes

abstract class Proxy[Fx] extends Proxy[Fx] with ThisInterpreter

Base class for user-defined Proxy Interpreter for this effect.

Base class for user-defined Proxy Interpreter for this effect.

Inherited from:
CanInterpret
abstract class Stateful[S, F[_]] extends Stateful[S, F] with ThisInterpreter

Base class for user-defined Stateful Interpreter for this effect.

Base class for user-defined Stateful Interpreter for this effect.

Inherited from:
CanInterpret
abstract class Stateless[F[_]] extends Stateless[F] with ThisInterpreter

Base class for user-defined Stateless Interpreter for this effect.

Base class for user-defined Stateless Interpreter for this effect.

Inherited from:
CanInterpret

Defines type aliases for Handler, specialized to eliminate this effect.

Defines type aliases for Handler, specialized to eliminate this effect.

Inherited from:
CanInterpret
sealed trait ThisInterpreter extends Unsealed
Inherited from:
CanInterpret

Inherited types

final override type !@![+A, U] = Computation[A, U]
Inherited from:
CanPerform
final override type ThisEffect = Effect
Inherited from:
Effect
final type ThisHandler[F[_], N] = Handler[F, ThisEffect, N]

Alias for Handler, specialized to eliminate this effect.

Alias for Handler, specialized to eliminate this effect.

Inherited from:
CanInterpret

Value members

Concrete methods

final def at(k: K): AtApply
final override def binary(to: K, from1: K, from2: K)(f: (V, V) => V): Computation[Unit, PolyGraph[K, V]]
Definition Classes
final override def const(to: K, value: V): Computation[Unit, PolyGraph[K, V]]
Definition Classes
final override def empty(to: K): Computation[Unit, PolyGraph[K, V]]
Definition Classes
final def fold(to: K, froms: Vector[K], initial: V)(f: (V, V) => V): Computation[Unit, PolyGraph[K, V]]
def handler: V => Free[Tuple2]

Default handler for this effect.

Default handler for this effect.

final override def identity(to: K, from: K): Computation[Unit, PolyGraph[K, V]]
Definition Classes
final def reduce(to: K, froms: Vector[K])(f: (V, V) => V): Computation[Unit, PolyGraph[K, V]]
final override def unary(to: K, from: K)(f: V => V): Computation[Unit, PolyGraph[K, V]]
Definition Classes
final override def variadic(to: K, froms: Vector[K])(f: Vector[V] => V): Computation[Unit, PolyGraph[K, V]]
Definition Classes

Inherited methods

final def &![Fx2 <: HasSignature](fx2: Fx2): Combine2[PolyGraph[K, V], Fx2]

Combines with another Effect instance, so that a single Handler for 2 effects can be created.

Combines with another Effect instance, so that a single Handler for 2 effects can be created.

Inherited from:
Effect
final def perform[A, U <: ThisEffect](f: PolyGraphSig[K, V] & Signature { type ThisEffect = U; } => A !@! U { def apply(z: PolyGraphSig[K, V] & Signature { type ThisEffect = U; }): A !@! U; }): Computation[A, U]

Lifts an invocation of this Signature's method into the Computation monad.

Lifts an invocation of this Signature's method into the Computation monad.

The purpose of perform is similar to:

  • send function form various effect systems (Eff monad, etc.)
  • serviceWith from ZIO 1.x.
  • serviceWithZIO from ZIO 2.x.

⚠️ Scaladoc displays the definition of perform as more complex than it actually is:

final def perform[A, U <: ThisEffect](f: (z: Z & Signature { type ThisEffect = U }) => z.!@![A, U]): A !! U
Inherited from:
CanPerform
final def pure[A](a: A): Computation[A, ThisEffect]

Like !!.pure(a), but with effect-set up-casted to ThisEffect

Like !!.pure(a), but with effect-set up-casted to ThisEffect

Inherited from:
CanPerform