ToEffect

caliban.interop.cats.ToEffect$
See theToEffect companion trait
object ToEffect

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

trait Contextual[F[_], R] extends ToEffect[F, R]

Contextual version of the ToEffect.

Contextual version of the ToEffect.

Attributes

F

the higher-kinded type of a polymorphic effect

R

the type of ZIO environment

Graph
Supertypes
trait ToEffect[F, R]
class Object
trait Matchable
class Any
Known subtypes
trait Contextual[F, R]

Value members

Concrete methods

def apply[F[_], R](implicit ev: ToEffect[F, R]): ToEffect[F, R]
def contextual[F[_] : Async, R : Tag](implicit evidence$1: Async[F], evidence$2: Tag[R], injector: InjectEnv[F, R], runtime: Runtime[R]): Contextual[F, R]
   Contextual conversion from [[zio.RIO]] to a polymorphic effect `F`.

   An environment of type `R` is injected into the effect `F` via `injector`.
   The execution of `RIO[R, A]` relies on the environment `R` taken from the parent `F` context via `askEnv`.

Attributes

F

the higher-kinded type of a polymorphic effect

R

the type of ZIO environment

injector

injects the given environment of type R into the effect F

def contextual[F[_] : Monad, R : Tag](to: ToEffect[F, R])(implicit evidence$3: Monad[F], evidence$4: Tag[R], injector: InjectEnv[F, R]): Contextual[F, R]
   Contextual conversion from [[zio.RIO]] to a polymorphic effect `F`.

   An environment of type `R` is injected into the effect `F` via `injector`.
   The execution of `RIO[R, A]` relies on the environment `R` taken from the parent `F` context via `askEnv`.

Attributes

F

the higher-kinded type of a polymorphic effect

R

the type of ZIO environment

injector

injects the given environment of type R into the effect F

to

the underlying conversion from zio.RIO to F

Implicits

Implicits

implicit def forAsync[F[_], R](implicit F: Async[F], runtime: Runtime[R]): ToEffect[F, R]

Default (non-contextual) conversion from zio.RIO to a polymorphic effect F.

Default (non-contextual) conversion from zio.RIO to a polymorphic effect F.

Identical to what https://github.com/zio/interop-cats offers.

Attributes

F

the higher-kinded type of a polymorphic effect

R

the type of ZIO environment

F

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

runtime

the instance of zio.Runtime. Required in order to perform the conversion