Safe Haskell | None |
---|---|
Language | Haskell2010 |
Database.PostgreSQL.PQTypes.Internal.Monad
Synopsis
- newtype DBT_ (m :: Type -> Type) (n :: Type -> Type) a = DBT {
- unDBT :: InnerDBT m n a
- type DBT (m :: Type -> Type) = DBT_ m m
- runDBT :: (HasCallStack, MonadBase IO m, MonadMask m) => ConnectionSourceM m -> TransactionSettings -> DBT m a -> m a
- mapDBT :: (DBState n -> DBState m) -> (m (a, DBState m) -> n (b, DBState n)) -> DBT m a -> DBT n b
Documentation
newtype DBT_ (m :: Type -> Type) (n :: Type -> Type) a Source #
Monad transformer for adding database interaction capabilities to the underlying monad.
Instances
runDBT :: (HasCallStack, MonadBase IO m, MonadMask m) => ConnectionSourceM m -> TransactionSettings -> DBT m a -> m a Source #
Evaluate monadic action with supplied connection source and transaction settings.