Examples to accompany the book "Parallel and Concurrent Programming in Haskell"

Latest on Hackage:0.4.7

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow to host generated Haddocks.

BSD3 licensed by Simon Marlow
Maintained by Simon Marlow

This is the sample code to accompany the book Parallel and Concurrent Programming in Haskell (Simon Marlow, O’Reilly 2013).

To build the code on your system, you need either:

Building with Stack

stack build

will build all the executables and install them in a platform-specific subdirectory under .stack-work/install.

Building with Cabal new-build

cabal new-build

Building with Cabal

cabal sandbox init
cabal install --only-dependencies
cabal configure
cabal build


Version 0.4.7

  • Builds with GHC 8.2.x and 8.4.x

Version 0.4.6

  • Builds with GHC 7.10 and GHC 8.0.2
  • Test with cabal new-build, and addit to the instructions

Version 0.4.5

  • Fix build with GHC 7.8

Version 0.4.4

  • Use http-conduit instead of HTTP (fixes problems with wikipedia URL examples)

Version 0.4.3

  • Fix build with GHC 7.8

Version 0.4.2

  • Minor fixes to the .cabal file

Version 0.4.1

  • Make findpar5.hs compile, and add it to the .cabal file

Version 0.4

  • Add stack.yaml, builds using LTS 4.2 (GHC 7.10.3)
  • Various upper bound updates,including network-2.6
  • Add, with build instructions for Stack and Cabal
  • Fix .cabal problems found by stack
  • Build tmvar.hs, windowman.hs by importing them into a dummy Main module in miscmodules.hs.
  • Removed generated Parse.hs and Lex.hs
comments powered byDisqus