HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Moduleio-streams-1.5.2.2Haskell2010

System.IO.Streams.Concurrent

Stream utilities for working with concurrent channels.

  • 5 values
  • Packageio-streams-1.5.2.2
  • Exports5
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceConcurrent.hs

Channel conversions

5 declarations
valueconcurrentMerge :: [InputStream a] -> IO (InputStream a)
#

Concurrently merges a list of InputStreams, combining values in the order they become available.

Note: does not forward individual end-of-stream notifications, the produced stream does not yield end-of-stream until all of the input streams have finished.

Any exceptions raised in one of the worker threads will be trapped and re-raised in the current thread.

If the supplied list is empty, concurrentMerge will return an empty stream. (Since: 1.5.0.1)