A library for parallel programming based on a monad

Version on this page:0.3.5@rev:1
LTS Haskell 22.29:0.3.6@rev:1
Stackage Nightly 2024-07-19:0.3.6@rev:1
Latest on Hackage:0.3.6@rev:1

See all snapshots monad-par appears in

BSD-3-Clause licensed by Simon Marlow, Ryan Newton
Maintained by Simon Marlow, Ryan Newton
This version can be pinned in stack with:monad-par-0.3.5@sha256:553316052d7890be549f319264e368a9a77d34e591e01b7895381637bdfc879e,6527

The Par monad offers a simple API for parallel programming. The library works for parallelising both pure and IO computations, although only the pure version is deterministic. The default implementation provides a work-stealing scheduler and supports forking tasks that are much lighter weight than IO-threads.

For complete documentation see Control.Monad.Par.

Some examples of use can be found in the examples/ directory of the source package.

Other related packages:

  • abstract-par provides the type classes that abstract over different implementations of the Par monad.

  • monad-par-extras provides extra combinators and monad transformers layered on top of the Par monad.

Changes in 0.3.4 relative to 0.3:

  • Fix bugs that cause "thread blocked indefinitely on MVar" crashes.

  • Added Control.Monad.Par.IO