packages feed

postgres-websockets 0.11.2.2 → 0.11.2.3

raw patch · 2 files changed

+40/−28 lines, 2 filesdep ~aesondep ~auto-updatedep ~bytestring

Dependency ranges changed: aeson, auto-update, bytestring, envparse, hasql, hasql-notifications, hasql-pool, hspec, lens, network, postgresql-libpq, websockets

Files

postgres-websockets.cabal view
@@ -1,9 +1,10 @@+cabal-version:       3.0 name:                postgres-websockets-version:             0.11.2.2+version:             0.11.2.3 synopsis:            Middleware to map LISTEN/NOTIFY messages to Websockets description:         WAI middleware that adds websockets capabilites on top of PostgreSQL's asynchronous notifications using LISTEN and NOTIFY commands. Fully functioning server included. homepage:            https://github.com/diogob/postgres-websockets#readme-license:             BSD3+license:             BSD-3-Clause license-file:        LICENSE author:              Diogo Biazus maintainer:          diogo@biazus.ca@@ -11,36 +12,44 @@ category:            Web, Database, PostgreSQL build-type:          Simple -- extra-source-files:-cabal-version:       >=1.10 +common warnings+    ghc-options: -Wall++common language+    default-language: Haskell2010+    default-extensions: OverloadedStrings, NoImplicitPrelude, LambdaCase, RecordWildCards, QuasiQuotes+ library+  import:              warnings+  import:              language   hs-source-dirs:      src-  ghc-options:         -Wall   exposed-modules:     PostgresWebsockets                      , PostgresWebsockets.Broadcast                      , PostgresWebsockets.HasqlBroadcast                      , PostgresWebsockets.Claims                      , PostgresWebsockets.Config +  autogen-modules:     Paths_postgres_websockets   other-modules:       Paths_postgres_websockets                      , PostgresWebsockets.Server                      , PostgresWebsockets.Middleware                      , PostgresWebsockets.Context   build-depends:       base >= 4.7 && < 5-                     , aeson >= 2.0 && < 2.2+                     , aeson >= 2.0 && < 2.3                      , alarmclock >= 0.7.0.2 && < 0.8-                     , auto-update >= 0.1.6 && < 0.2+                     , auto-update >= 0.1.6 && < 0.3                      , base64-bytestring >= 1.0.0.3 && < 1.3-                     , bytestring >= 0.11.5 && < 0.12+                     , bytestring >= 0.11.5 && < 0.13                      , either >= 5.0.1.1 && < 5.1-                     , envparse >= 0.5.0 && < 0.6-                     , hasql >= 1.6.3 && < 1.7-                     , hasql-notifications >= 0.1.0.0 && < 0.3-                     , hasql-pool >= 0.8 && < 0.10+                     , envparse >= 0.5.0 && < 0.7+                     , hasql >= 1.7 && < 1.9+                     , hasql-notifications >= 0.2.3.0 && < 0.3+                     , hasql-pool ^>= 1.2                      , http-types >= 0.12.3 && < 0.13                      , jose >= 0.11 && < 0.12-                     , lens >= 5.2.3 && < 5.3-                     , postgresql-libpq >= 0.10.0 && < 0.11+                     , lens >= 5.2.3 && < 5.4+                     , postgresql-libpq >= 0.10.0 && < 0.12                      , protolude >= 0.2.3 && < 0.4                      , retry >= 0.8.1.0 && < 0.10                      , stm >= 2.5.0.0 && < 2.6@@ -54,23 +63,25 @@                      , wai-websockets >= 3.0 && < 4                      , warp >= 3.2 && < 4                      , warp-tls >= 3.2 && < 4-                     , websockets >= 0.9 && < 0.13+                     , websockets >= 0.9 && < 0.14    default-language:    Haskell2010-  default-extensions: OverloadedStrings, NoImplicitPrelude, LambdaCase, RecordWildCards  executable postgres-websockets+  import:              warnings+  import:              language   hs-source-dirs:      app   main-is:             Main.hs   other-modules:-  ghc-options:         -Wall -threaded -rtsopts -with-rtsopts=-N+  ghc-options:         -threaded -rtsopts -with-rtsopts=-N   build-depends:       base >= 4.7 && < 5                      , postgres-websockets                      , protolude >= 0.2.3 && < 0.4   default-language:    Haskell2010-  default-extensions: OverloadedStrings, NoImplicitPrelude, QuasiQuotes  test-suite postgres-websockets-test+  import:              warnings+  import:              language   type:                exitcode-stdio-1.0   hs-source-dirs:      test   main-is:             Spec.hs@@ -81,23 +92,22 @@   build-depends:       base                      , protolude >= 0.2.3 && < 0.4                      , postgres-websockets-                     , hspec >= 2.7.1 && < 2.11-                     , aeson >= 2.0 && < 2.2-                     , hasql >= 0.19-                     , hasql-pool >= 0.8 && < 0.10-                     , hasql-notifications >= 0.1.0.0 && < 0.3+                     , hspec >= 2.7.1 && < 2.12+                     , aeson >= 2.0 && < 2.3+                     , hasql >= 1.7 && < 1.9+                     , hasql-pool ^>= 1.2+                     , hasql-notifications >= 0.2.3.0 && < 0.3                      , http-types >= 0.9                      , time >= 1.8.0.2 && < 1.13                      , unordered-containers >= 0.2                      , wai-extra >= 3.0.29 && < 3.2                      , stm >= 2.5.0.0 && < 2.6-                     , websockets >= 0.12.7.0 && < 0.13-                     , network >= 2.8.0.1 && < 3.2-                     , lens >= 4.17.1 && < 5.3+                     , websockets >= 0.12.7.0 && < 0.14+                     , network >= 2.8.0.1 && < 3.3+                     , lens >= 4.17.1 && < 5.4                      , lens-aeson >= 1.0.0 && < 1.3-  ghc-options:         -Wall -threaded -rtsopts -with-rtsopts=-N+  ghc-options:         -threaded -rtsopts -with-rtsopts=-N   default-language:    Haskell2010-  default-extensions: OverloadedStrings, NoImplicitPrelude  source-repository head   type:     git
src/PostgresWebsockets/Context.hs view
@@ -14,6 +14,7 @@   ) import Data.Time.Clock (UTCTime, getCurrentTime) import qualified Hasql.Pool as P+import qualified Hasql.Pool.Config as P import PostgresWebsockets.Broadcast (Multiplexer) import PostgresWebsockets.Config (AppConfig (..)) import PostgresWebsockets.HasqlBroadcast (newHasqlBroadcaster)@@ -31,10 +32,11 @@ mkContext :: AppConfig -> IO () -> IO Context mkContext conf@AppConfig {..} shutdownServer = do   Context conf-    <$> P.acquire configPool 10000 10000 pgSettings+    <$> P.acquire config     <*> newHasqlBroadcaster shutdown (toS configListenChannel) configRetries configReconnectInterval pgSettings     <*> mkGetTime   where+    config = P.settings [P.staticConnectionSettings pgSettings]     shutdown =       maybe         shutdownServer