postgresql-query 3.3.0 → 3.4.0
raw patch · 3 files changed
+5/−10 lines, 3 filesdep −eitherdep ~base
Dependencies removed: either
Dependency ranges changed: base
Files
- CHANGELOG.md +4/−0
- postgresql-query.cabal +1/−2
- src/Database/PostgreSQL/Query/Types.hs +0/−8
CHANGELOG.md view
@@ -1,5 +1,9 @@ # CHANGELOG +## 3.4.0+### Removed+* Drop `EitherT` support+ ## 3.3.0 ### Changed * Support for ghc-8.2 (Catherine Galkina)
postgresql-query.cabal view
@@ -1,5 +1,5 @@ name: postgresql-query-version: 3.3.0+version: 3.4.0 synopsis: Sql interpolating quasiquote plus some kind of primitive ORM using it@@ -75,7 +75,6 @@ , bytestring , containers , data-default- , either , exceptions , file-embed , haskell-src-meta
src/Database/PostgreSQL/Query/Types.hs view
@@ -32,7 +32,6 @@ import Control.Monad.Trans import Control.Monad.Trans.Cont import Control.Monad.Trans.Control-import Control.Monad.Trans.Either import Control.Monad.Trans.Except import Control.Monad.Trans.Identity import Control.Monad.Trans.Maybe@@ -217,12 +216,6 @@ class (MonadBase IO m) => HasPostgres m where withPGConnection :: (Connection -> m a) -> m a -instance (HasPostgres m) => HasPostgres (EitherT e m) where- withPGConnection action = do- EitherT $ withPGConnection $ \con -> do- runEitherT $ action con- {-# INLINABLE withPGConnection #-}- instance (HasPostgres m) => HasPostgres (ExceptT e m) where withPGConnection action = do ExceptT $ withPGConnection $ \con -> do@@ -288,7 +281,6 @@ -- connection from e.g. connection pool is not. class TransactionSafe (m :: * -> *) -instance (TransactionSafe m) => TransactionSafe (EitherT e m) instance (TransactionSafe m) => TransactionSafe (ExceptT e m) instance (TransactionSafe m) => TransactionSafe (IdentityT m) instance (TransactionSafe m) => TransactionSafe (MaybeT m)