trskop / connection-pool Goto Github PK
View Code? Open in Web Editor NEWConnection pool built on top of resource-pool and streaming-commons packages.
License: BSD 3-Clause "New" or "Revised" License
Connection pool built on top of resource-pool and streaming-commons packages.
License: BSD 3-Clause "New" or "Revised" License
Citing from http://hydra.cryp.to/build/1183547/nixlog/3/raw:
src/Data/ConnectionPool/Internal/Streaming.hs:126:29:
Constructor ‘ClientSettings’ should have 4 arguments, but has been given 3
In the pattern: ClientSettings port host addrFamily
In an equation for ‘acquireTcpClientConnection’:
acquireTcpClientConnection (ClientSettings port host addrFamily)
= getSocketFamilyTCP host port addrFamily
Building library for connection-pool-0.2.2.. [201/182284]
[5 of 9] Compiling Data.ConnectionPool.Internal.ConnectionPool
/var/stackage/work/unpack-dir/unpacked/connection-pool-0.2.2-59172d8e2bc6c82e06991a9601f932ad6f3dfd0348cea0cce0ae60b16dc54ebd/src/Da
ta/ConnectionPool/Internal/ConnectionPool.hs:96:56: error:
• Could not deduce (Show (Pool (c, i)))
arising from a use of ‘shows’
from the context: Show handlerParams
bound by the instance declaration
at src/Data/ConnectionPool/Internal/ConnectionPool.hs:94:10-70
• In the first argument of ‘(.)’, namely ‘shows _resourcePool’
In the second argument of ‘(.)’, namely
‘shows _resourcePool
. showString ", handlerParams = "
. shows _handlerParams . showChar '}'’
In the expression:
showString "ConnectionPool {resourcePool = "
. shows _resourcePool
. showString ", handlerParams = "
. shows _handlerParams . showChar '}'
|
96 | showString "ConnectionPool {resourcePool = " . shows _resourcePool
| ^^^^^
/var/stackage/work/unpack-dir/unpacked/connection-pool-0.2.2-59172d8e2bc6c82e06991a9601f932ad6f3dfd0348cea0cce0ae60b16dc54ebd/src/Da
ta/ConnectionPool/Internal/ConnectionPool.hs:176:5: error:
• Couldn't match type ‘m’ with ‘IO’
Expected: m r
Actual: IO r
‘m’ is a rigid type variable bound by
the type signature for:
withConnection :: forall (m :: * -> *) handlerParams connection
connectionInfo r.
MonadBaseControl IO m =>
ConnectionPool handlerParams connection connectionInfo
-> (handlerParams -> connection -> connectionInfo -> m r) -> m r
at src/Data/ConnectionPool/Internal/ConnectionPool.hs:(170,1)-(174,10)
• In the expression:
Pool.withResource _resourcePool (uncurry (f _handlerParams))
In an equation for ‘withConnection’:
withConnection ConnectionPool {..} f
= Pool.withResource _resourcePool (uncurry (f _handlerParams))
• Relevant bindings include [159/182284]
f :: handlerParams -> connection -> connectionInfo -> m r
(bound at src/Data/ConnectionPool/Internal/ConnectionPool.hs:175:35)
withConnection :: ConnectionPool
handlerParams connection connectionInfo
-> (handlerParams -> connection -> connectionInfo -> m r) -> m r
(bound at src/Data/ConnectionPool/Internal/ConnectionPool.hs:175:1)
|
176 | Pool.withResource _resourcePool (uncurry (f _handlerParams))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/var/stackage/work/unpack-dir/unpacked/connection-pool-0.2.2-59172d8e2bc6c82e06991a9601f932ad6f3dfd0348cea0cce0ae60b16dc54ebd/src/Da
ta/ConnectionPool/Internal/ConnectionPool.hs:188:5: error:
• Couldn't match type ‘m’ with ‘IO’
Expected: m (Maybe r)
Actual: IO (Maybe r)
‘m’ is a rigid type variable bound by
the type signature for:
tryWithConnection :: forall (m :: * -> *) handlerParams connection
connectionInfo r.
MonadBaseControl IO m =>
ConnectionPool handlerParams connection connectionInfo
-> (handlerParams -> connection -> connectionInfo -> m r)
-> m (Maybe r)
at src/Data/ConnectionPool/Internal/ConnectionPool.hs:(182,1)-(186,18)
• In the expression:
Pool.tryWithResource _resourcePool (uncurry (f _handlerParams))
In an equation for ‘tryWithConnection’:
tryWithConnection ConnectionPool {..} f
= Pool.tryWithResource _resourcePool (uncurry (f _handlerParams))
• Relevant bindings include
f :: handlerParams -> connection -> connectionInfo -> m r
(bound at src/Data/ConnectionPool/Internal/ConnectionPool.hs:187:38)
tryWithConnection :: ConnectionPool
handlerParams connection connectionInfo
-> (handlerParams -> connection -> connectionInfo -> m r)
-> m (Maybe r)
(bound at src/Data/ConnectionPool/Internal/ConnectionPool.hs:187:1)
|
188 | Pool.tryWithResource _resourcePool (uncurry (f _handlerParams))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.