hpqtypes-1.4.3: Haskell bindings to libpqtypes

Safe HaskellNone
LanguageHaskell98

Database.PostgreSQL.PQTypes.Internal.Monad

Synopsis

Documentation

newtype DBT m a Source

Monad transformer for adding database interaction capabilities to the underlying monad.

Constructors

DBT 

Fields

unDBT :: InnerDBT m a
 

runDBT :: (MonadBase IO m, MonadMask m) => ConnectionSource -> TransactionSettings -> DBT m a -> m a Source

Evaluate monadic action with supplied connection source and transaction settings.

mapDBT :: (m (a, DBState) -> n (b, DBState)) -> DBT m a -> DBT n b Source

Transform the underlying monad.