diff --git a/hasql-notifications.cabal b/hasql-notifications.cabal index 6dbd19d..c2fc5cf 100644 --- a/hasql-notifications.cabal +++ b/hasql-notifications.cabal @@ -17,12 +17,12 @@ library hs-source-dirs: src exposed-modules: Hasql.Notifications build-depends: base >= 4.7 && < 5 - , bytestring >= 0.10.8.2 + , bytestring >= 0.10.8.2 && < 0.12 , 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 + , hasql >= 0.19 && < 1.8 default-language: Haskell2010 ghc-options: -Wall 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