connection-pool-0.2.2: Connection pool built on top of resource-pool and streaming-commons.

Copyright(c) 2014-2015 Peter Trško
LicenseBSD3
Maintainerpeter.trsko@gmail.com
Stabilitystable
PortabilityGHC specific language extensions.
Safe HaskellSafe
LanguageHaskell2010

Data.ConnectionPool.Family

Contents

Description

Module defines data family of connection pools that is later specialised for various protocols and implementations.

This module is intended mostly for library writers, for normal usage just import Data.ConnectionPool which re-exports ConnectionPool data family.

Notice that this module doesn't depend on any other internal modules nor any other package then base. Please, bear this in mind when doing modifications.

Synopsis

Connection Pool Family

data family ConnectionPool :: k -> * #

Family of connection pools parametrised by transport protocol.

Definition changed in version 0.2 to be kind polymorphic (only on GHC >= 7.10), and became part of stable API by being moved in to Data.ConnectionPool.Family module.

Instances
HasConnectionPool HandlerParams Socket () (ConnectionPool UnixClient) #

Since version 0.2.

Instance details

Defined in Data.ConnectionPool.Internal.Unix

HasConnectionPool HandlerParams Socket SockAddr (ConnectionPool TcpClient) #

Since version 0.2.

Instance details

Defined in Data.ConnectionPool.Internal.TCP

Show (ConnectionPool TcpClient) # 
Instance details

Defined in Data.ConnectionPool.Internal.TCP

Show (ConnectionPool UnixClient) # 
Instance details

Defined in Data.ConnectionPool.Internal.Unix

Generic (ConnectionPool TcpClient) # 
Instance details

Defined in Data.ConnectionPool.Internal.TCP

Associated Types

type Rep (ConnectionPool TcpClient) :: Type -> Type #

Generic (ConnectionPool UnixClient) # 
Instance details

Defined in Data.ConnectionPool.Internal.Unix

Associated Types

type Rep (ConnectionPool UnixClient) :: Type -> Type #

newtype ConnectionPool TcpClient #

Connection pool for TCP clients.

Definition changed in version 0.1.3 and 0.2. Instances for Generic and Show introduced in version 0.2.

Instance details

Defined in Data.ConnectionPool.Internal.TCP

newtype ConnectionPool UnixClient #

Connection pool for UNIX Socket clients.

Definition changed in version 0.1.3 and 0.2. Instances for Generic and Show introduced in version 0.2.

Instance details

Defined in Data.ConnectionPool.Internal.Unix

type Rep (ConnectionPool TcpClient) # 
Instance details

Defined in Data.ConnectionPool.Internal.TCP

type Rep (ConnectionPool TcpClient) = D1 (MetaData "ConnectionPool" "Data.ConnectionPool.Internal.TCP" "connection-pool-0.2.2-InQM8FC9A6sDEvmcfhnUJi" True) (C1 (MetaCons "TcpConnectionPool" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (ConnectionPool HandlerParams Socket SockAddr))))
type Rep (ConnectionPool UnixClient) # 
Instance details

Defined in Data.ConnectionPool.Internal.Unix

type Rep (ConnectionPool UnixClient) = D1 (MetaData "ConnectionPool" "Data.ConnectionPool.Internal.Unix" "connection-pool-0.2.2-InQM8FC9A6sDEvmcfhnUJi" True) (C1 (MetaCons "UnixConnectionPool" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (ConnectionPool HandlerParams Socket ()))))