Giter VIP home page Giter VIP logo

connection-pool's People

Contributors

trskop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

connection-pool's Issues

connection-pool-0.1.2.0 doesn't compile

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

fails to build with ghc-9.4 for Stackage Nightly

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))                                                           
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                           

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.