InjectEnv

object InjectEnv
Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def kleisli[F[_] : Applicative, R]: InjectEnv[[_] =>> Kleisli[F, R, _$6], R]

Injects a given environment into the underlying effect in cats.data.Kleisli. Prioritizes Kleisli context over ZIO environment.

Injects a given environment into the underlying effect in cats.data.Kleisli. Prioritizes Kleisli context over ZIO environment.

Type parameters:
F

the higher-kinded type of a polymorphic effect

R

the type of ZIO environment

def kleisliLens[F[_] : Applicative, R, R1](lens: R => R1, mod: (R, R1) => R): InjectEnv[[_] =>> Kleisli[F, R1, _$3], R]

Injects a zoomed value (via lens) from the given environment into the underlying effect in cats.data.Kleisli.

Injects a zoomed value (via lens) from the given environment into the underlying effect in cats.data.Kleisli.

Constructs a new environment using zio.RIO env and local context from cats.data.Kleisli.

Useful when zio.RIO and effect F are using different contextual environments.

Type parameters:
F

the higher-kinded type of a polymorphic effect

R

the type of ZIO environment

R1

the zoomed typed inside of the R

Value parameters:
lens

zooms R1 inside of the R

mod

the modification function that returns a new environment

Implicits

Implicits

implicit def injectEnvForEitherT[F[_] : Applicative, E, R](implicit evidence$5: Applicative[F], injector: InjectEnv[F, R]): InjectEnv[[_] =>> EitherT[F, E, _$14], R]
implicit def injectEnvForKleisli[F[_] : Applicative, R]: InjectEnv[[_] =>> Kleisli[F, R, _$9], R]
implicit def injectEnvForOptionT[F[_] : Applicative, R](implicit evidence$4: Applicative[F], injector: InjectEnv[F, R]): InjectEnv[[_] =>> OptionT[F, _$11], R]