Copyright | (c) 2015, Peter Trško |
---|---|
License | BSD3 |
Maintainer | peter.trsko@gmail.com |
Stability | unstable (internal module) |
Portability | DeriveDataTypeable, NamedFieldPuns, NoImplicitPrelude, RecordWildCards |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Internal packages are here to provide access to internal definitions for library writers, but they should not be used in application code.
Preferably use qualified import, e.g.:
import qualified Data.ConnectionPool.Internal.HandlerParams as Internal
This module doesn't depend on streaming-commons and other non-HaskellPlatform packages with notable exception of resource-pool. Another notable thing is that this package is not OS specific. Please, bear this in mind when doing modifications.
- data HandlerParams = HandlerParams {
- _readBufferSize :: !Int
- readBufferSize :: Functor f => (Int -> f Int) -> HandlerParams -> f HandlerParams
Documentation
data HandlerParams Source
HandlerParams | |
|
Data HandlerParams | |
Show HandlerParams | |
Generic HandlerParams | |
Default HandlerParams |
Package streaming-commons < 0.1.13 used value 4096, streaming-commons == 0.1.13 used 32768, which is 8 * 4096, based on: issue #22 |
Typeable * HandlerParams | |
type Rep HandlerParams |
readBufferSize :: Functor f => (Int -> f Int) -> HandlerParams -> f HandlerParams Source
Lens for accessing read buffer size that handler should use when reading data from connection.