packages feed

network-simple 0.4.0.1 → 0.4.0.2

raw patch · 3 files changed

+15/−3 lines, 3 filesdep ~network

Dependency ranges changed: network

Files

changelog.md view
@@ -1,3 +1,10 @@+# Version 0.4.0.2++* Workaround `sendLazy` build issues in Windows 8 (see #13).++* Bump upper bound on `network` dependency.++ # Version 0.4.0.1  * Add `sendLazy` and `sendMany` to `Network.Simple.TCP`.
network-simple.cabal view
@@ -1,5 +1,5 @@ name:                network-simple-version:             0.4.0.1+version:             0.4.0.2 homepage:            https://github.com/k0001/network-simple bug-reports:         https://github.com/k0001/network-simple/issues license:             BSD3@@ -34,7 +34,7 @@   exposed-modules:   Network.Simple.TCP   other-modules:     Network.Simple.Internal   build-depends:     base         (>=4.5 && < 5)-                   , network      (>=2.3 && <2.6)+                   , network      (>=2.3 && <2.7)                    , bytestring   (>=0.9.2.1 && <0.11)                    , transformers (>=0.2 && <0.5)                    -- Packages not in The Haskell Platform
src/Network/Simple/TCP.hs view
@@ -322,7 +322,12 @@  -- | Writes a lazy 'BSL.ByteString' to the socket. sendLazy :: MonadIO m => NS.Socket -> BSL.ByteString -> m ()-sendLazy sock = \bs -> liftIO (NSBL.sendAll sock bs)+#if !MIN_VERSION_network(2,7,0) && defined(mingw32_HOST_OS)+sendLazy sock = \lbs -> sendMany sock (BSL.toChunks lbs) -- see #13.+#else+sendLazy sock = \lbs -> liftIO (NSBL.sendAll sock lbs)+#endif+ {-# INLINABLE sendLazy #-}  -- | Writes the given list of 'BS.ByteString's to the socket.