File tree Expand file tree Collapse file tree
src/Database/PostgreSQL/Simple Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ### Version 0.6.5 (2022-10-30)
2+
3+ * Add ` withConnect `
4+
15### Version 0.6.4 (2021-01-06)
26
37 * Add foldCopyData helper function
Original file line number Diff line number Diff line change 11cabal-version : 1.12
22name : postgresql-simple
3- version : 0.6.4
4- x-revision : 9
3+ version : 0.6.5
54synopsis : Mid-Level PostgreSQL client library
65description :
76 Mid-Level PostgreSQL client library , forked from mysql-simple.
Original file line number Diff line number Diff line change @@ -156,6 +156,8 @@ connect :: ConnectInfo -> IO Connection
156156connect = connectPostgreSQL . postgreSQLConnectionString
157157
158158-- | Memory bracket around 'connect' and 'close'.
159+ --
160+ -- @since 0.6.5
159161withConnect :: ConnectInfo -> (Connection -> IO c ) -> IO c
160162withConnect connInfo = bracket (connect connInfo) close
161163
You can’t perform that action at this time.
0 commit comments