Free monad over a free functor of FastpathOp; abstractly, a computation that consumes
a org.postgresql.fastpath.Fastpath
and produces a value of type A
.
Syntax for FastpathIO
.
Sum type of primitive operations over a org.postgresql.fastpath.Fastpath
.
Capture instance for FastpathIO.
Catchable instance for FastpathIO.
Module of constructors for FastpathOp
.
Module of constructors for FastpathOp
. These are rarely useful outside of the implementation;
prefer the smart constructors provided by the fastpath
module.
Lift a FastpathIO[A] into an exception-capturing FastpathIO[Throwable \/ A].
Non-strict unit for capturing effects.
Natural transformation from FastpathOp
to Kleisli
for the given M
, consuming a org.postgresql.fastpath.Fastpath
.
Algebra and free monad for primitive operations over a
org.postgresql.fastpath.Fastpath
. This is a low-level API that exposes lifecycle-managed JDBC objects directly and is intended mainly for library developers. End users will prefer a safer, higher-level API such as that provided in thedoobie.hi
package.FastpathIO
is a free monad that must be run via an interpreter, most commonly via natural transformation of its underlying algebraFastpathOp
to another monad viaFree#foldMap
.The library provides a natural transformation to
Kleisli[M, Fastpath, A]
for any exception-trapping (Catchable
) and effect-capturing (Capture
) monadM
. Such evidence is provided forTask
,IO
, and stdlibFuture
; andtransK[M]
is provided as syntax.