streaming-commons 0.1.11 → 0.1.12
raw patch · 4 files changed
+15/−1 lines, 4 files
Files
- ChangeLog.md +4/−0
- Data/Streaming/Network.hs +9/−0
- Data/Streaming/Network/Internal.hs +1/−0
- streaming-commons.cabal +1/−1
ChangeLog.md view
@@ -1,3 +1,7 @@+## 0.1.12++* `appRawSocket`+ ## 0.1.11 * `getUnusedInflated`: Return uncompressed data following compressed data [#20](https://github.com/fpco/streaming-commons/issues/20)
Data/Streaming/Network.hs view
@@ -54,6 +54,7 @@ , appSockAddr , appLocalAddr , appCloseConnection+ , appRawSocket -- * Functions -- ** General , bindPortGen@@ -555,6 +556,7 @@ , appSockAddr' = addr , appLocalAddr' = mlocal , appCloseConnection' = NS.sClose socket+ , appRawSocket' = Just socket } in app ad@@ -570,6 +572,7 @@ , appSockAddr' = address , appLocalAddr' = Nothing , appCloseConnection' = NS.sClose s+ , appRawSocket' = Just s }) appLocalAddr :: AppData -> Maybe NS.SockAddr@@ -584,6 +587,12 @@ -- Since 0.1.6 appCloseConnection :: AppData -> IO () appCloseConnection = appCloseConnection'++-- | Get the raw socket for this @AppData@, if available.+--+-- Since 0.1.12+appRawSocket :: AppData -> Maybe NS.Socket+appRawSocket = appRawSocket' class HasReadWrite a where readLens :: Functor f => (IO ByteString -> f (IO ByteString)) -> a -> f a
Data/Streaming/Network/Internal.hs view
@@ -97,4 +97,5 @@ , appSockAddr' :: !SockAddr , appLocalAddr' :: !(Maybe SockAddr) , appCloseConnection' :: !(IO ())+ , appRawSocket' :: Maybe Socket }
streaming-commons.cabal view
@@ -1,5 +1,5 @@ name: streaming-commons-version: 0.1.11+version: 0.1.12 synopsis: Common lower-level functions needed by various streaming data libraries description: Provides low-dependency functionality commonly needed by various streaming data libraries, such as conduit and pipes. homepage: https://github.com/fpco/streaming-commons