edenmodules-1.2.0.0: Semi-explicit parallel programming library

Copyright(c) Philipps Universitaet Marburg 2012-
LicenseBSD-style (see the file LICENSE)
Maintainereden@mathematik.uni-marburg.de
Stabilitybeta
Portabilitynot portable
Safe HaskellNone
LanguageHaskell98

Control.Parallel.Eden.Merge

Contents

Description

Provides an implementation of nmergeIO (as previously available from Control.Concurrent in base package). Eden language definition assumes merge functionality as a base construct.

Eden Group Marburg ( http://www.mathematik.uni-marburg.de/~eden )

Synopsis

Non-deterministic merge of lists into one result list.

Previously available in Concurrent Haskell, living here from GHC-7.6 on. This function merges incoming lists non-deterministically into one result. Its implementation in this module follows the pattern of the previous one from Control.Concurrent, but uses the old simple semaphore implementation, and optimises the case of only one remaining list.

nmergeIO_E :: [[a]] -> IO [a] Source