ErrorGK

turbolift.effects.ErrorGK
trait ErrorGK[M[_, _], K, F[_], V] extends ErrorEffect[M[K, F[V]], (K, V)]

Attributes

Graph
Supertypes
trait ErrorEffect[M[K, F[V]], (K, V)]
trait ErrorSignature[M[K, F[V]], (K, V)]
trait Effect[ErrorSignature[M[K, F[V]], (K, V)]]
trait CanPerform[ErrorSignature[M[K, F[V]], (K, V)]]
trait Signature
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited classlikes

object handlers

Predefined handlers for this effect.

Predefined handlers for this effect.

Attributes

Inherited from:
ErrorEffect
Supertypes
class Object
trait Matchable
class Any

Inherited types

final override type !@![+A, U] = Computation[A, U]

Abstract type that must be used in definitions of effect's operations.

Abstract type that must be used in definitions of effect's operations.

Becomes an alias of Computation (i.e. same as !!), once the signature is inherited from Effect.

Attributes

Inherited from:
CanPerform
final override type ThisEffect = Effect.this.type

Abstract type that must be used in definitions of effect's operations.

Abstract type that must be used in definitions of effect's operations.

Becomes an alias of this.type, once the signature is inherited from Effect.

Attributes

Inherited from:
Effect

Value members

Inherited methods

final def &![Fx2 <: Signature](fx2: Fx2): Combine2[Effect, Fx2]

Combines with another Effect instance, for the purpose of sharing an Interpreter.

Combines with another Effect instance, for the purpose of sharing an Interpreter.

Attributes

Inherited from:
Effect
final def catchAll[A, U <: ErrorGK[M, K, F, V]](body: Computation[A, U])(f: M[K, F[V]] => A): Computation[A, U]

Attributes

Inherited from:
ErrorEffect
final override def catchAllEff[A, U <: ErrorGK[M, K, F, V]](body: Computation[A, U])(f: M[K, F[V]] => Computation[A, U]): Computation[A, U]

Attributes

Definition Classes
Inherited from:
ErrorEffect
final def catchSome[A, U <: ErrorGK[M, K, F, V]](body: Computation[A, U])(f: PartialFunction[M[K, F[V]], A]): Computation[A, U]

Attributes

Inherited from:
ErrorEffect
final def catchSomeEff[A, U <: ErrorGK[M, K, F, V]](body: Computation[A, U])(f: PartialFunction[M[K, F[V]], Computation[A, U]]): Computation[A, U]

Attributes

Inherited from:
ErrorEffect
final def fromEither[A](x: Either[(K, V), A]): Computation[A, ErrorEffect]

Attributes

Inherited from:
ErrorEffect
final def fromOption[A](x: Option[A])(e: => (K, V)): Computation[A, ErrorEffect]

Attributes

Inherited from:
ErrorEffect
final def fromTry[A](x: Try[A])(using ev: Throwable <:< (K, V)): Computation[A, ErrorEffect]

Attributes

Inherited from:
ErrorEffect
final def perform[A, U <: ThisEffect](f: (z: ErrorSignature[M[K, F[V]], (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.

Attributes

Inherited from:
CanPerform
final def raise[K, V1](k: K, v: V1)(using ev: (K, V1) <:< (K, V)): Computation[Unit, ErrorEffect]

Attributes

Inherited from:
ErrorEffect
final override def raise(e: (K, V)): Computation[Nothing, ErrorEffect]

Attributes

Definition Classes
Inherited from:
ErrorEffect
final def raises[K, V](k: K, v: V)(using ev: (K, V) <:< M[K, F[V]]): Computation[Unit, ErrorEffect]

Attributes

Inherited from:
ErrorEffect
final override def raises(e: M[K, F[V]]): Computation[Nothing, ErrorEffect]

Attributes

Definition Classes
Inherited from:
ErrorEffect
final override def toEither[A, U <: ErrorGK[M, K, F, V]](body: Computation[A, U]): Computation[Either[E, A], U]

Attributes

Definition Classes
Inherited from:
ErrorEffect

Inherited fields

val impl: EffectImpl[ErrorGK[M, K, F, V]]

Object containing type definitions, to be used for implementing Interpreters for this effect.

Object containing type definitions, to be used for implementing Interpreters for this effect.

Attributes

Inherited from:
Effect

Exports

Inherited defined exports

final val ThisHandler: ThisHandler.type
Exported from EffectImpl

Attributes

Inherited from:
Effect
final type ThisHandler = [F[_], G[_], N] =>> ThisHandler[F, G, N]
Exported from EffectImpl

Attributes

Inherited from:
Effect