sendfile 0.7.11 → 0.7.11.1
raw patch · 2 files changed
+3/−3 lines, 2 filesdep ~basePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base
API changes (from Hackage documentation)
Files
sendfile.cabal view
@@ -1,5 +1,5 @@ name: sendfile-version: 0.7.11+version: 0.7.11.1 stability: provisional synopsis: A portable sendfile library description: A library which exposes zero-copy sendfile functionality in a portable way. If a platform does not support sendfile, a fallback implementation in haskell is provided.
src/Network/Socket/SendFile/Internal.hs view
@@ -78,7 +78,7 @@ sendFile'' :: Socket -> Handle -> Integer -> Integer -> IO () sendFile'' outs inh off count = #if MIN_VERSION_network(3,0,0)- do out_fd <- Fd <$> (fdSocket outs)+ do out_fd <- fmap Fd (fdSocket outs) #else do let out_fd = Fd (fdSocket outs) #endif@@ -89,7 +89,7 @@ sendFileIterWith'' :: (IO Iter -> IO a) -> Socket -> Handle -> Integer -> Integer -> Integer -> IO a sendFileIterWith'' stepper outs inp blockSize off count = #if MIN_VERSION_network(3,0,0)- do out_fd <- Fd <$> (fdSocket outs)+ do out_fd <- fmap Fd (fdSocket outs) #else do let out_fd = Fd (fdSocket outs) #endif