arrow-effects-extensions / arrow.effects.extensions / KleisliBracket

KleisliBracket

@extension interface KleisliBracket<F, R, E> : Bracket<KleisliPartialOf<F, R>, E>, KleisliMonadError<F, R, E>

Functions

BF abstract fun BF(): Bracket<F, E>
bracketCase open fun <A, B> Kind<KleisliPartialOf<F, R>, A>.bracketCase(release: (A, ExitCase<E>) -> Kind<KleisliPartialOf<F, R>, Unit>, use: (A) -> Kind<KleisliPartialOf<F, R>, B>): Kleisli<F, R, B>
ME open fun ME(): MonadError<F, E>
uncancelable open fun <A> Kind<KleisliPartialOf<F, R>, A>.uncancelable(): Kleisli<F, R, A>

Extension Functions

just fun <A> A.just(): IO<A>
just fun <F, E, A> A.just(BR: Bracket<F, E>): Resource<F, E, A>