diff --git a/multipool-persistent-postgresql.cabal b/multipool-persistent-postgresql.cabal
--- a/multipool-persistent-postgresql.cabal
+++ b/multipool-persistent-postgresql.cabal
@@ -1,11 +1,13 @@
--- This file has been generated from package.yaml by hpack version 0.28.2.
+cabal-version: 1.12
+
+-- This file has been generated from package.yaml by hpack version 0.31.0.
 --
 -- see: https://github.com/sol/hpack
 --
--- hash: 85d47579b05b4044610bc215a30cfc37c95ff29ec15a9c8ad94ac1d9a8c6affc
+-- hash: 38184121adb69accd291a224f21f2e7561c4f2779343321d4743a42c47fa0ba6
 
 name:           multipool-persistent-postgresql
-version:        0.1.0.1
+version:        0.1.1.0
 synopsis:       Read and write appropriately from both master and replicated postgresql instances.
 description:    Please see the README on GitHub at <https://github.com/iand675/multipool#readme>
 category:       Database
@@ -17,10 +19,9 @@
 license:        BSD3
 license-file:   LICENSE
 build-type:     Simple
-cabal-version:  >= 1.10
 extra-source-files:
-    ChangeLog.md
     README.md
+    ChangeLog.md
 
 source-repository head
   type: git
@@ -39,8 +40,9 @@
     , mtl
     , multipool
     , multipool-persistent
-    , persistent
-    , persistent-postgresql
+    , persistent >=2.9.0
+    , persistent-postgresql >=2.9.0
+    , persistent-qq >=2.9.0
     , postgresql-common-persistent
     , unliftio-core
     , unordered-containers
@@ -61,8 +63,9 @@
     , multipool
     , multipool-persistent
     , multipool-persistent-postgresql
-    , persistent
-    , persistent-postgresql
+    , persistent >=2.9.0
+    , persistent-postgresql >=2.9.0
+    , persistent-qq >=2.9.0
     , postgresql-common-persistent
     , unliftio-core
     , unordered-containers
diff --git a/src/Data/MultiPool/Persist/Postgresql.hs b/src/Data/MultiPool/Persist/Postgresql.hs
--- a/src/Data/MultiPool/Persist/Postgresql.hs
+++ b/src/Data/MultiPool/Persist/Postgresql.hs
@@ -16,6 +16,8 @@
 import Data.MultiPool.Persist.Sql
 import Database.Persist.Postgresql
 import Database.Persist.Postgresql.Common
+import Database.Persist.Sql.Raw.QQ
+
 
 initMultiPool ::
      (MonadLogger m, MonadUnliftIO m)
