persistent-postgresql 0.8.1.2 → 0.9.0
raw patch · 2 files changed
+8/−6 lines, 2 filesdep ~conduitdep ~persistentdep ~transformers
Dependency ranges changed: conduit, persistent, transformers
Files
Database/Persist/Postgresql.hs view
@@ -30,6 +30,7 @@ import Control.Exception (SomeException, throw) import Control.Monad.IO.Class (MonadIO (..))+import Control.Monad.Trans.Control (MonadBaseControl) import Data.List (intercalate) import Data.IORef import qualified Data.Map as Map@@ -94,7 +95,8 @@ -- | Same as 'withPostgresqlPool', but instead of opening a pool -- of connections, only one connection is opened.-withPostgresqlConn :: C.ResourceIO m => ConnectionString -> (Connection -> m a) -> m a+withPostgresqlConn :: (MonadIO m, MonadBaseControl IO m)+ => ConnectionString -> (Connection -> m a) -> m a withPostgresqlConn = withSqlConn . open' open' :: ConnectionString -> IO Connection@@ -140,7 +142,7 @@ _ <- PG.execute conn query (map P vals) return () -withStmt' :: C.ResourceIO m+withStmt' :: C.MonadResource m => PG.Connection -> PG.Query -> [PersistValue]
persistent-postgresql.cabal view
@@ -1,5 +1,5 @@ name: persistent-postgresql-version: 0.8.1.2+version: 0.9.0 license: BSD3 license-file: LICENSE author: Felipe Lessa, Michael Snoyman <michael@snoyman.com>@@ -14,17 +14,17 @@ library build-depends: base >= 4 && < 5- , transformers >= 0.2.1 && < 0.3+ , transformers >= 0.2.1 && < 0.4 , postgresql-simple >= 0.0.3 && < 0.1 , postgresql-libpq >= 0.6.1 && < 0.8- , persistent >= 0.8 && < 0.9+ , persistent >= 0.9 && < 0.10 , containers >= 0.2 , bytestring >= 0.9 && < 0.10 , text >= 0.7 && < 0.12 , monad-control >= 0.2 && < 0.4 , time >= 1.1 , aeson >= 0.5- , conduit >= 0.2+ , conduit >= 0.4 && < 0.5 exposed-modules: Database.Persist.Postgresql ghc-options: -Wall