diff --git a/hasql-notifications.cabal b/hasql-notifications.cabal index d8afae6..7da7190 100644 --- a/hasql-notifications.cabal +++ b/hasql-notifications.cabal @@ -19,7 +19,7 @@ library build-depends: base >= 4.7 && < 5 , bytestring >= 0.10.8.2 , text >= 2 && < 2.2 - , hasql-pool >= 0.4 && < 1.1 + , hasql-pool >= 1.2 && < 1.3 , bytestring >= 0.10 , postgresql-libpq >= 0.9 && < 1.0 , hasql >= 0.19 diff --git a/src/Hasql/Notifications.hs b/src/Hasql/Notifications.hs index 09d2952..dd75d2e 100644 --- a/src/Hasql/Notifications.hs +++ b/src/Hasql/Notifications.hs @@ -81,7 +81,7 @@ notify :: PgIdentifier -> -- | Payload to be sent with the notification Text -> - IO (Either S.QueryError ()) + IO (Either S.SessionError ()) notify con channel mesg = run (sql $ T.encodeUtf8 ("NOTIFY " <> fromPgIdentifier channel <> ", '" <> mesg <> "'")) con