Skip to content

Commit

Permalink
Upgrade hasql-pool to 1.2. Had to drop compatibility with previous ve…
Browse files Browse the repository at this point in the history
…rsions since QueryError now is a data constructor for SessionError
  • Loading branch information
diogob committed May 6, 2024
1 parent b017d66 commit 4ef3839
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hasql-notifications.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Hasql/Notifications.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4ef3839

Please sign in to comment.