arrow-effects-extensions / arrow.effects.extensions / ResourceMonoid

ResourceMonoid

@extension interface ResourceMonoid<F, E, A> : Monoid<Resource<F, E, A>>, ResourceSemigroup<F, E, A>

Functions

BR abstract fun BR(): Bracket<F, E>
empty open fun empty(): Resource<F, E, A>
MR abstract fun MR(): Monoid<A>
SR open fun SR(): Semigroup<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>