CatsInterop

Companion:
class
class Object
trait Matchable
class Any

Type members

Classlikes

trait Contextual[F[_], R] extends CatsInterop[F, R] with Contextual[F, R] with Contextual[F, R]

Contextual version of the CatsInterop.

Contextual version of the CatsInterop.

Inherits two utility methods from ToEffect.Contextual and FromEffect.Contextual:

 def toEffect[A](rio: RIO[R, A], env: R): F[A]

 def fromEffect[A](fa: F[A], env: R): RIO[R, A]
Type parameters:
F

the higher-kinded type of a polymorphic effect

R

the type of ZIO environment

Value members

Concrete methods

def apply[F[_], R](implicit ev: CatsInterop[F, R]): CatsInterop[F, R]
def checkAsync[F[_], R](graphQL: GraphQLInterpreter[R, Any])(query: String)(implicit interop: ToEffect[F, Any]): F[Unit]
def contextual[F[_] : Async, R](dispatcher: Dispatcher[F])(implicit evidence$1: Async[F], injector: InjectEnv[F, R], runtime: Runtime[R]): Contextual[F, R]
   Contextual interop between `F` and [[zio.RIO]].

   An environment of type `R` is injected into the effect `F` via `injector`.
   The execution of `RIO[R, A]` relies on the environment `R` modified by [[InjectEnv.modify]].
Type parameters:
F

the higher-kinded type of a polymorphic effect

R

the type of ZIO environment

Value parameters:
dispatcher

the instance of cats.effect.std.Dispatcher. Required in order to perform the conversion

injector

injects the given environment of type R into the effect F

def contextual[F[_] : Monad, R](underlying: CatsInterop[F, R])(implicit evidence$2: Monad[F], injector: InjectEnv[F, R]): Contextual[F, R]
   Contextual interop between `F` and [[zio.RIO]].

   An environment of type `R` is injected into the effect `F` via `injector`.
   The execution of `RIO[R, A]` relies on the environment `R` modified by [[InjectEnv.modify]].
Type parameters:
F

the higher-kinded type of a polymorphic effect

R

the type of ZIO environment

Value parameters:
injector

injects the given environment of type R into the effect F

underlying

the underlying interop between F and zio.RIO

def default[F[_] : Async, R](dispatcher: Dispatcher[F])(implicit evidence$3: Async[F], runtime: Runtime[R]): CatsInterop[F, R]

Default (non-contextual) interop between F and zio.RIO. Identical to what https://github.com/zio/interop-cats offers.

Default (non-contextual) interop between F and zio.RIO. Identical to what https://github.com/zio/interop-cats offers.

Type parameters:
F

the higher-kinded type of a polymorphic effect

R

the type of ZIO environment

Value parameters:
dispatcher

the instance of cats.effect.std.Dispatcher. Required in order to perform the conversion

See also:

See ToEffect.forAsync and FromEffect.forDispatcher for more details.

def executeAsync[F[_], R, E](graphQL: GraphQLInterpreter[R, E])(query: String, operationName: Option[String], variables: Map[String, InputValue], extensions: Map[String, InputValue], skipValidation: Boolean, enableIntrospection: Boolean, queryExecution: QueryExecution)(implicit interop: ToEffect[F, R]): F[GraphQLResponse[E]]
def interpreterAsync[F[_], R](graphQL: GraphQL[R])(implicit interop: ToEffect[F, Any]): F[GraphQLInterpreter[R, CalibanError]]
def make[F[_], R](to: ToEffect[F, R], from: FromEffect[F, R]): CatsInterop[F, R]

Creates an instance of CatsInterop using ToEffect and FromEffect under the hood.

Creates an instance of CatsInterop using ToEffect and FromEffect under the hood.

Type parameters:
F

the higher-kinded type of a polymorphic effect

R

the type of ZIO environment

Value parameters:
from

the conversion from F to zio.RIO

to

the conversion from zio.RIO to F

def schema[F[_], R, A](implicit interop: FromEffect[F, R], ev: Schema[R, A]): Schema[R, F[A]]

Deprecated methods

@deprecated("Use `CatsInterop[F, Any].fromEffect` or `FromEffect[F, Any].fromEffect`", "1.4.0")
def fromEffect[F[_], A](fa: F[A])(implicit F: Dispatcher[F]): Task[A]
Deprecated
@deprecated("Use `CatsInterop[F, R].fromEffectK` or `FromEffect[F, R].fromEffectK`", "1.4.0")
def fromEffectK[F[_], R](implicit F: Dispatcher[F]): FunctionK[F, [_] =>> RIO[R, _$16]]
Deprecated
@deprecated("Use `CatsInterop[F, R].toEffect` or `ToEffect[F, R].toEffect`", "1.4.0")
def toEffect[F[_], R, A](rio: RIO[R, A])(implicit F: Async[F], R: Runtime[R]): F[A]
Deprecated
@deprecated("Use `CatsInterop[F, R].toEffectK` or `FromEffect[F, R].fromEffectK`", "1.4.0")
def toEffectK[F[_], R](implicit F: Async[F], R: Runtime[R]): FunctionK[[_] =>> RIO[R, _$18], F]
Deprecated

Implicits

Implicits

implicit def materialize[F[_], R](implicit to: ToEffect[F, R], from: FromEffect[F, R]): CatsInterop[F, R]

Materializes an instance of CatsInterop using ToEffect and FromEffect available in the implicit scope.

Materializes an instance of CatsInterop using ToEffect and FromEffect available in the implicit scope.

Type parameters:
F

the higher-kinded type of a polymorphic effect

R

the type of ZIO environment

Value parameters:
from

the conversion from F to zio.RIO

to

the conversion from zio.RIO to F