packages feed

tcp-streams 1.0.1.0 → 1.0.1.1

raw patch · 3 files changed

+17/−4 lines, 3 filesdep ~networkPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: network

API changes (from Hackage documentation)

- Data.Connection: Connection :: {-# UNPACK #-} !(InputStream ByteString) -> (ByteString -> IO ()) -> IO () -> a -> Connection a
+ Data.Connection: Connection :: {-# UNPACK #-} !InputStream ByteString -> (ByteString -> IO ()) -> IO () -> a -> Connection a
- Data.Connection: [source] :: Connection a -> {-# UNPACK #-} !(InputStream ByteString)
+ Data.Connection: [source] :: Connection a -> {-# UNPACK #-} !InputStream ByteString

Files

ChangeLog.md view
@@ -1,5 +1,10 @@ # Revision history for tcp-streams +## 1.0.1.1++* Fix [stackage#4312](https://github.com/commercialhaskell/stackage/issues/4312): Relax version bound for `network`.++ ## 1.0.1.0  * Update test cert(the old one just expired).
System/IO/Streams/TCP.hs view
@@ -1,4 +1,5 @@ {-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE CPP #-}  -- | This module provides convenience functions for interfacing raw tcp. --@@ -36,6 +37,13 @@ import qualified System.IO.Streams         as S import           Foreign.Storable   (sizeOf) +addrAny :: N.HostAddress+#if MIN_VERSION_network(2,7,0)+addrAny = N.tupleToHostAddress (0,0,0,0)+#else+addrAny = N.iNADDR_ANY+#endif+ -- | Type alias for tcp connection. -- -- Normally you shouldn't use 'N.Socket' in 'connExtraInfo' directly, this field is@@ -145,11 +153,11 @@                   -> Int                 -- ^ connection limit                   -> N.PortNumber        -- ^ port number                   -> IO N.Socket-bindAndListenWith f maxc port = do+bindAndListenWith f maxc port =     E.bracketOnError (N.socket N.AF_INET N.Stream 0)                      N.close                      (\sock -> do f sock-                                  N.bind sock (N.SockAddrInet port N.iNADDR_ANY)+                                  N.bind sock (N.SockAddrInet port addrAny)                                   N.listen sock maxc                                   return sock                      )
tcp-streams.cabal view
@@ -1,5 +1,5 @@ name:                tcp-streams-version:             1.0.1.0+version:             1.0.1.1 synopsis:            One stop solution for tcp client and server with tls support. description:         One stop solution for tcp client and server with tls support. license:             BSD3@@ -33,7 +33,7 @@   other-modules:    Paths_tcp_streams   -- other-extensions:       build-depends:        base           >=4.7  && < 5.0-                    ,   network        >=2.3  && < 3.0+                    ,   network        >=2.3  && < 4.0                     ,   bytestring     >= 0.10.2.0                     ,   io-streams     >= 1.2 && < 2.0                     ,   tls            >= 1.3 && < 2.0