diff --git a/Database/Persist/Postgresql.hs b/Database/Persist/Postgresql.hs
--- a/Database/Persist/Postgresql.hs
+++ b/Database/Persist/Postgresql.hs
@@ -23,20 +23,20 @@
 import Control.Arrow
 import Data.List (sort, groupBy)
 import Data.Function (on)
-import Control.Monad.Invert (MonadInvertIO)
+import Control.Monad.IO.Peel (MonadPeelIO)
 
 import Data.ByteString (ByteString)
 import qualified Data.Text as T
 import qualified Data.Text.Encoding as T
 import qualified Data.Text.Encoding.Error as T
 
-withPostgresqlPool :: MonadInvertIO m
+withPostgresqlPool :: MonadPeelIO m
                    => String
                    -> Int -- ^ number of connections to open
                    -> (ConnectionPool -> m a) -> m a
 withPostgresqlPool s = withSqlPool $ open' s
 
-withPostgresqlConn :: MonadInvertIO m => String -> (Connection -> m a) -> m a
+withPostgresqlConn :: MonadPeelIO m => String -> (Connection -> m a) -> m a
 withPostgresqlConn = withSqlConn . open'
 
 open' :: String -> IO Connection
@@ -82,7 +82,7 @@
     _ <- H.execute stmt $ map pToSql vals
     return ()
 
-withStmt' :: MonadInvertIO m
+withStmt' :: MonadPeelIO m
           => H.Statement
           -> [PersistValue]
           -> (RowPopper m -> m a)
diff --git a/persistent-postgresql.cabal b/persistent-postgresql.cabal
--- a/persistent-postgresql.cabal
+++ b/persistent-postgresql.cabal
@@ -1,28 +1,28 @@
 name:            persistent-postgresql
-version:         0.3.1.1
+version:         0.4.0
 license:         BSD3
 license-file:    LICENSE
 author:          Michael Snoyman <michael@snoyman.com>
 maintainer:      Michael Snoyman <michael@snoyman.com>
 synopsis:        Backend for the persistent library using postgresql.
 description:     Based on the HDBC-postgresql package
-category:        Database
+category:        Database, Yesod
 stability:       Stable
 cabal-version:   >= 1.6
 build-type:      Simple
 homepage:        http://docs.yesodweb.com/persistent/
 
 library
-    build-depends:   base >= 4 && < 5,
-                     template-haskell >= 2.4 && < 2.6,
-                     HDBC >= 2.2.6 && < 2.3,
-                     transformers >= 0.2.1 && < 0.3,
-                     HDBC-postgresql >= 2.2.3.1 && < 2.3,
-                     persistent >= 0.3.1 && < 0.4,
-                     containers >= 0.2 && < 0.5,
-                     bytestring >= 0.9 && < 0.10,
-                     neither >= 0.1 && < 0.2,
-                     text >= 0.7 && < 0.12
+    build-depends:   base                  >= 4        && < 5
+                   , template-haskell
+                   , HDBC                  >= 2.2.6    && < 2.3
+                   , transformers          >= 0.2.1    && < 0.3
+                   , HDBC-postgresql       >= 2.2.3.1  && < 2.3
+                   , persistent            >= 0.4      && < 0.5
+                   , containers            >= 0.2      && < 0.5
+                   , bytestring            >= 0.9      && < 0.10
+                   , text                  >= 0.7      && < 0.12
+                   , monad-peel            >= 0.1      && < 0.2
     exposed-modules: Database.Persist.Postgresql
     ghc-options:     -Wall
 
