diff --git a/postgres-websockets.cabal b/postgres-websockets.cabal index 472b5f0..8e26953 100644 --- a/postgres-websockets.cabal +++ b/postgres-websockets.cabal @@ -27,7 +27,7 @@ library , PostgresWebsockets.Middleware , PostgresWebsockets.Context build-depends: base >= 4.7 && < 5 - , hasql-pool >= 0.5 && < 0.6 + , hasql-pool >= 0.8 && < 0.9 , text >= 1.2 && < 1.3 , wai >= 3.2 && < 4 , websockets >= 0.9 && < 0.13 @@ -46,7 +46,7 @@ library , stm-containers >= 1.1.0.2 && < 1.2 , stm >= 2.5.0.0 && < 2.6 , retry >= 0.8.1.0 && < 0.9 - , time >= 1.8.0.2 && < 1.10 + , time >= 1.8.0.2 && < 1.12 , alarmclock >= 0.7.0.2 && < 0.8 , envparse >= 0.4.1 , base64-bytestring >= 1.0.0.3 && < 1.3 @@ -82,19 +82,19 @@ test-suite postgres-websockets-test build-depends: base , protolude >= 0.2.3 && < 0.4 , postgres-websockets - , hspec >= 2.7.1 && < 2.9 + , hspec >= 2.7.1 && < 2.10 , aeson >= 2.0 && < 2.1 , hasql >= 0.19 - , hasql-pool >= 0.4 + , hasql-pool >= 0.8 && < 0.9 , hasql-notifications >= 0.1.0.0 && < 0.3 , http-types >= 0.9 - , time >= 1.8.0.2 && < 1.10 + , time >= 1.8.0.2 && < 1.12 , 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.1 + , lens >= 4.17.1 && < 5.2 , lens-aeson ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N default-language: Haskell2010 diff --git a/src/PostgresWebsockets/Context.hs b/src/PostgresWebsockets/Context.hs index 7343bff..b413643 100644 --- a/src/PostgresWebsockets/Context.hs +++ b/src/PostgresWebsockets/Context.hs @@ -31,7 +31,7 @@ data Context = Context mkContext :: AppConfig -> IO () -> IO Context mkContext conf@AppConfig {..} shutdownServer = do Context conf - <$> P.acquire (configPool, 10, pgSettings) + <$> P.acquire configPool (Just 10000) pgSettings <*> newHasqlBroadcaster shutdown (toS configListenChannel) configRetries configReconnectInterval pgSettings <*> mkGetTime where diff --git a/stack.yaml b/stack.yaml index dcd5791..455d7d0 100644 --- a/stack.yaml +++ b/stack.yaml @@ -1,10 +1,8 @@ -resolver: lts-19.33 +resolver: lts-20.12 extra-deps: - exceptions-0.10.4@sha256:7ed09aed03683d5b4337088061106c2389d274b3472031a330ff1b220bad2b2d,2796 - retry-0.8.1.2@sha256:b81e7d7e5f068da82349a3c157a2ab25d399c9ca4841d1b6e54e8c4050cb065f,2189 - stm-containers-1.1.0.5@sha256:dffad326e360cf937840bf61f00c6e7dcc4fe62b4db420bf51266b08559f5020,3248 -- git: https://github.com/protolude/protolude.git - commit: 3e249724fd0ead27370c8c297b1ecd38f92cbd5b packages: - . diff --git a/stack.yaml.lock b/stack.yaml.lock index 0086060..3bfecb5 100644 --- a/stack.yaml.lock +++ b/stack.yaml.lock @@ -25,20 +25,9 @@ packages: size: 761 original: hackage: stm-containers-1.1.0.5@sha256:dffad326e360cf937840bf61f00c6e7dcc4fe62b4db420bf51266b08559f5020,3248 -- completed: - commit: 3e249724fd0ead27370c8c297b1ecd38f92cbd5b - git: https://github.com/protolude/protolude.git - name: protolude - pantry-tree: - sha256: 685ed0191298da9540e772ffa746eb078d4f4a77ed8012a9933d3c79644b1054 - size: 3146 - version: 0.3.1 - original: - commit: 3e249724fd0ead27370c8c297b1ecd38f92cbd5b - git: https://github.com/protolude/protolude.git snapshots: - completed: - sha256: 6d1532d40621957a25bad5195bfca7938e8a06d923c91bc52aa0f3c41181f2d4 - size: 619204 - url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/19/33.yaml - original: lts-19.33 + sha256: af5d667f6096e535b9c725a72cffe0f6c060e0568d9f9eeda04caee70d0d9d2d + size: 649133 + url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/20/12.yaml + original: lts-20.12