connection-pool-0.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
PortabilityCPP, DeriveDataTypeable, PolyKinds, StandaloneDeriving, NoImplicitPrelude, TypeFamilies
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 -> * Source

Family of connection pools parametrised by transport protocol.

Definition changed 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) Source

Since version 0.2.

HasConnectionPool HandlerParams Socket SockAddr (ConnectionPool * TcpClient) Source

Since version 0.2.

Show (ConnectionPool * TcpClient) 
Show (ConnectionPool * UnixClient) 
Generic (ConnectionPool * TcpClient) 
Generic (ConnectionPool * UnixClient) 
data ConnectionPool * TcpClient = TcpConnectionPool (ConnectionPool HandlerParams Socket SockAddr) Source

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.

data ConnectionPool * UnixClient = UnixConnectionPool (ConnectionPool HandlerParams Socket ()) Source

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.

type Rep (ConnectionPool * TcpClient) 
type Rep (ConnectionPool * UnixClient)