packages feed

simple-sendfile 0.2.4 → 0.2.5

raw patch · 2 files changed

+7/−2 lines, 2 filesdep ~conduit

Dependency ranges changed: conduit

Files

Network/Sendfile/Fallback.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE CPP #-} module Network.Sendfile.Fallback (     sendfile   , sendfileWithHeader@@ -26,6 +27,9 @@  -- See sinkHandle. sinkSocket :: MonadIO m => Socket -> IO () -> Sink ByteString m ()+#if MIN_VERSION_conduit(0,5,0)+sinkSocket s hook = awaitForever $ \bs -> liftIO $ SB.sendAll s bs >> hook+#else sinkSocket s hook = NeedInput push close   where     push bs = flip PipeM (return ()) $ do@@ -33,6 +37,7 @@         liftIO hook         return (NeedInput push close)     close = return ()+#endif  -- | -- Sendfile emulation using conduit.
simple-sendfile.cabal view
@@ -1,5 +1,5 @@ Name:                   simple-sendfile-Version:                0.2.4+Version:                0.2.5 Author:                 Kazu Yamamoto <kazu@iij.ad.jp> Maintainer:             Kazu Yamamoto <kazu@iij.ad.jp> License:                BSD3@@ -41,7 +41,7 @@       else         Other-Modules:  Network.Sendfile.Fallback         Build-Depends:  bytestring      >= 0.9   && < 0.10-                      , conduit         >= 0.4.1 && < 0.5+                      , conduit         >= 0.4.1 && < 0.6                       , transformers    >= 0.2.2 && < 0.4  Test-Suite spec