monad-par-0.1.0.2: A library for parallel programming based on a monad

Control.Monad.Par.Internal

Description

This module exposes the internals of the Par monad so that you
can build your own scheduler or other extensions. Do not use this
module for purposes other than extending the Par monad with new
functionality.

put a value into a IVar. Multiple puts to the same IVar
are not allowed, and result in a runtime error.

put fully evaluates its argument, which therefore must be an
instance of NFData. The idea is that this forces the work to
happen when we expect it, rather than being passed to the consumer
of the IVar and performed later, which often results in less
parallelism than expected.