groundhog-postgresql 0.8.0.1 → 0.8.0.2
raw patch · 3 files changed
+14/−2 lines, 3 filesdep ~aeson
Dependency ranges changed: aeson
Files
- Database/Groundhog/Postgresql.hs +9/−0
- changelog +3/−0
- groundhog-postgresql.cabal +2/−2
Database/Groundhog/Postgresql.hs view
@@ -163,6 +163,15 @@ liftIO $ PG.commit c return x +instance TryConnectionManager Postgresql where+ tryWithConn f g conn@(Postgresql c) = do+ liftIO $ PG.begin c+ x <- g (f conn)+ case x of+ Left _ -> liftIO $ PG.rollback c+ Right _ -> liftIO $ PG.commit c+ return x+ instance ExtractConnection Postgresql Postgresql where extractConn f conn = f conn
changelog view
@@ -1,3 +1,6 @@+0.8.0.2+* Remove upper bound for aeson+ 0.8.0.1 * Bump aeson to 1.2
groundhog-postgresql.cabal view
@@ -1,5 +1,5 @@ name: groundhog-postgresql-version: 0.8.0.1+version: 0.8.0.2 license: BSD3 license-file: LICENSE author: Boris Lykah <lykahb@gmail.com>@@ -16,7 +16,7 @@ library build-depends: base >= 4 && < 5- , aeson >= 0.8 && < 1.3+ , aeson >= 0.8 , postgresql-simple >= 0.3 && < 0.6 , postgresql-libpq >= 0.6.1 , bytestring >= 0.9