postgresql-tx-simple-0.3.0.0: postgresql-tx interfacing for use with postgresql-simple.
Safe HaskellNone
LanguageHaskell2010

Database.PostgreSQL.Tx.Simple.Internal

Synopsis

Disclaimer

Changes to this module will not be reflected in the library's version updates.

Internals

type PgSimpleM a = forall r. PgSimpleEnv r => TxM r a Source #

Monad type alias for running postgresql-simple via postgresql-tx.

Since: 0.2.0.0

type PgSimpleEnv r = TxEnv Connection r :: Constraint Source #

Runtime environment needed to run postgresql-simple via postgresql-tx.

Since: 0.2.0.0

unsafeRunTransaction :: PgSimpleEnv r => (Connection -> IO a -> IO a) -> r -> TxM r a -> IO a Source #

unsafeFromPgSimple1 :: (Connection -> a1 -> IO x) -> a1 -> PgSimpleM x Source #

unsafeFromPgSimple2 :: (Connection -> a1 -> a2 -> IO x) -> a1 -> a2 -> PgSimpleM x Source #