packages feed

streaming-commons 0.1.2.3 → 0.1.2.4

raw patch · 2 files changed

+5/−2 lines, 2 filesdep +randomPVP ok

version bump matches the API change (PVP)

Dependencies added: random

API changes (from Hackage documentation)

Files

Data/Streaming/Network.hs view
@@ -98,6 +98,7 @@ import Data.IORef (IORef, newIORef, atomicModifyIORef) import Data.Array.Unboxed ((!), UArray, bounds, listArray) import System.IO.Unsafe (unsafePerformIO)+import System.Random (randomRIO) #if WINDOWS import Control.Concurrent.MVar (putMVar, takeMVar, newEmptyMVar) #endif@@ -207,7 +208,8 @@ unassignedPortsMax = length unassignedPortsList  nextUnusedPort :: IORef Int-nextUnusedPort = unsafePerformIO $ newIORef unassignedPortsMin+nextUnusedPort = unsafePerformIO+               $ randomRIO (unassignedPortsMin, unassignedPortsMax) >>= newIORef {-# NOINLINE nextUnusedPort #-}  -- | Get a port from the IANA list of unassigned ports.
streaming-commons.cabal view
@@ -1,5 +1,5 @@ name:                streaming-commons-version:             0.1.2.3+version:             0.1.2.4 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@@ -42,6 +42,7 @@                      , bytestring                      , directory                      , network+                     , random                      , text                      , transformers                      , zlib