git.iko.soy/typeable/postgresql-simple
on master help sign in
Prepare 0.6.5 release
50dcd8bOleg Grenrus
CHANGES.md+4
@@ -1,3 +1,7 @@
1+### Version 0.6.5 (2022-10-30)
2+
3+ * Add `withConnect`
4+
1### Version 0.6.4 (2021-01-06)
5### Version 0.6.4 (2021-01-06)
2
6
3 * Add foldCopyData helper function
7 * Add foldCopyData helper function
postgresql-simple.cabal+1−2
@@ -1,7 +1,6 @@
1cabal-version: 1.12
1cabal-version: 1.12
2name: postgresql-simple
2name: postgresql-simple
3−version: 0.6.4
3+version: 0.6.5
4−x-revision: 9
5synopsis: Mid-Level PostgreSQL client library
4synopsis: Mid-Level PostgreSQL client library
6description:
5description:
7 Mid-Level PostgreSQL client library, forked from mysql-simple.
6 Mid-Level PostgreSQL client library, forked from mysql-simple.
src/Database/PostgreSQL/Simple/Internal.hs+2
@@ -156,6 +156,8 @@ connect :: ConnectInfo -> IO Connection
156connect = connectPostgreSQL . postgreSQLConnectionString
156connect = connectPostgreSQL . postgreSQLConnectionString
157
157
158-- | Memory bracket around 'connect' and 'close'.
158-- | Memory bracket around 'connect' and 'close'.
159+--
160+-- @since 0.6.5
159withConnect :: ConnectInfo -> (Connection -> IO c) -> IO c
161withConnect :: ConnectInfo -> (Connection -> IO c) -> IO c
160withConnect connInfo = bracket (connect connInfo) close
162withConnect connInfo = bracket (connect connInfo) close
161
163