UnliftResource

class Object
trait Matchable
class Any

Value members

Concrete methods

def unliftResource[Alg[_[_, _, _, _, _]], Op[_, _, _, _, _], F[_] : MonadCancelThrow](algRes: Resource[F, Monadic[Alg, F]], service: Service[Alg, Op]): Interpreter[Op, F]

Transform a resource with an interpreter to a plain interpreter (allocating and using the resource every time it's called).

Transform a resource with an interpreter to a plain interpreter (allocating and using the resource every time it's called).

This variant is the plain transformation on Ops.

def unliftService[Alg[_[_, _, _, _, _]], Op[_, _, _, _, _], F[_] : MonadCancelThrow](algRes: Resource[F, Monadic[Alg, F]])(implicit evidence$1: MonadCancelThrow[F], service: Service[Alg, Op]): Alg[<none>]

Transform a resource with an interpreter to a plain interpreter (allocating and using the resource every time it's called).

Transform a resource with an interpreter to a plain interpreter (allocating and using the resource every time it's called).

Applies the transformation on the given service.