diff --git a/Database/Persist/Postgresql.hs b/Database/Persist/Postgresql.hs
--- a/Database/Persist/Postgresql.hs
+++ b/Database/Persist/Postgresql.hs
@@ -2,6 +2,7 @@
 -- | A postgresql backend for persistent.
 module Database.Persist.Postgresql
     ( withPostgresqlPool
+    , withPostgresqlPoolF
     , withPostgresqlConn
     , module Database.Persist
     , module Database.Persist.GenericSql
@@ -31,6 +32,8 @@
                    -> Int -- ^ number of connections to open
                    -> (ConnectionPool -> m a) -> m a
 withPostgresqlPool s = withSqlPool $ open' s
+
+withPostgresqlPoolF f s = withSqlPoolF f $ open' s
 
 withPostgresqlConn :: MonadCatchIO m => String -> (Connection -> m a) -> m a
 withPostgresqlConn = withSqlConn . open'
diff --git a/persistent-postgresql.cabal b/persistent-postgresql.cabal
--- a/persistent-postgresql.cabal
+++ b/persistent-postgresql.cabal
@@ -1,5 +1,5 @@
 name:            persistent-postgresql
-version:         0.2.1.1
+version:         0.2.2
 license:         BSD3
 license-file:    LICENSE
 author:          Michael Snoyman <michael@snoyman.com>
@@ -19,7 +19,7 @@
                      transformers >= 0.2.1 && < 0.3,
                      MonadCatchIO-transformers >= 0.2.2 && < 0.3,
                      HDBC-postgresql >= 2.2.3.1 && < 2.3,
-                     persistent >= 0.2.1 && < 0.3,
+                     persistent >= 0.2.4 && < 0.3,
                      containers >= 0.2 && < 0.4,
                      bytestring >= 0.9 && < 0.10,
                      utf8-string >= 0.3.6 && < 0.4
