connection-pool 0.1.2.0 → 0.1.2.1
raw patch · 5 files changed
+28/−12 lines, 5 filesdep ~streaming-commonsPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: streaming-commons
API changes (from Hackage documentation)
Files
- ChangeLog.md +12/−2
- README.md +1/−0
- connection-pool.cabal +8/−6
- src/Data/ConnectionPool/Internal/ConnectionPool.hs +1/−1
- src/Data/ConnectionPool/Internal/Streaming.hs +6/−3
ChangeLog.md view
@@ -1,10 +1,20 @@ # ChangeLog / ReleaseNotes ++## Version 0.1.2.1++* Builds also with [streaming-commons][] `>0.1.5 && <0.1.14`. Tested up to+ [streaming-commons][] version 0.1.13. See also issue #1+ <https://github.com/trskop/connection-pool/issues/1> (new)+* Uploaded to [Hackage][]:+ <http://hackage.haskell.org/package/connection-pool-0.1.2.1>++ ## Version 0.1.2.0 * Builds with GHC 7.10 and base 4.8. (new)-* Builds with also with [streaming-commons][] `>0.1.5 && <0.1.13`. Tested up to- [streaming-commons][] version 1.12.1. (new)+* Builds also with [streaming-commons][] `>0.1.5 && <0.1.13`. Tested up to+ [streaming-commons][] version 0.1.12.1. (new) * Uploaded to [Hackage][]: <http://hackage.haskell.org/package/connection-pool-0.1.2.0>
README.md view
@@ -3,6 +3,7 @@ [ ][Hackage: connection-pool]+[](http://packdeps.haskellers.com/reverse/connection-pool) [][Haskell.org] [][tl;dr Legal: BSD3]
connection-pool.cabal view
@@ -1,5 +1,5 @@ name: connection-pool-version: 0.1.2.0+version: 0.1.2.1 synopsis: Connection pool built on top of resource-pool and streaming-commons. description:@@ -38,9 +38,9 @@ flag pedantic description:- Pass additional warning flags including -Werror to GHC during compilation.- default: False- manual: True+ Pass additional warning flags including to GHC during compilation.+ default: False+ manual: True library hs-source-dirs: src@@ -91,6 +91,8 @@ -- -- * Version 0.1.6 introduced appCloseConnection' field of AppData. -- * Version 0.1.12 introduced appRawSocket' field of AppData.+ -- * Version 0.1.13 extended ClientSettings with clientReadBufferSize+ -- field and ClientSettingsUnix with clientReadBufferSizeUnix field. , transformers-base >= 0.4.2 && < 0.5 -- Version bounds taken from latest monad-control package (at the moment -- 0.3.3.0), which is a dependency of resource-pool package.@@ -109,7 +111,7 @@ ghc-options: -fwarn-implicit-prelude -fwarn-missing-import-lists- -Werror+-- -Werror source-repository head type: git@@ -118,4 +120,4 @@ source-repository this type: git location: git://github.com/trskop/connection-pool.git- tag: v0.1.2.0+ tag: v0.1.2.1
src/Data/ConnectionPool/Internal/ConnectionPool.hs view
@@ -82,7 +82,7 @@ (ResourcePoolParams._resourceIdleTimeout params) (ResourcePoolParams._numberOfResourcesPerStripe params) --- | Specialized wrapper for 'Pool.withConnection'.+-- | Specialized wrapper for 'Pool.withResource'. withConnection :: MonadBaseControl IO m => ConnectionPool a
src/Data/ConnectionPool/Internal/Streaming.hs view
@@ -62,7 +62,7 @@ , AppDataUnix(AppDataUnix) #endif -- !WINDOWS- , ClientSettings(ClientSettings)+ , ClientSettings(clientPort, clientHost, clientAddrFamily) ) import qualified Data.Streaming.Network.Internal as AppData ( AppData@@ -123,8 +123,11 @@ -- | Wrapper for 'getSocketFamilyTCP' that takes 'ClientSettings' instead of -- individual parameters. acquireTcpClientConnection :: ClientSettings -> IO (Socket, SockAddr)-acquireTcpClientConnection (ClientSettings port host addrFamily) =- getSocketFamilyTCP host port addrFamily+acquireTcpClientConnection settings = getSocketFamilyTCP host port addrFamily+ where+ port = clientPort settings+ host = clientHost settings+ addrFamily = clientAddrFamily settings #ifndef WINDOWS -- Windows doesn't support UNIX Sockets.