6.4. Using Concurrent Haskell

6.4. Using Concurrent Haskell

GHC supports Concurrent Haskell by default, without requiring a special option or libraries compiled in a certain way. To get access to the support libraries for Concurrent Haskell, just import Control.Concurrent. More information on Concurrent Haskell is provided in the documentation for that module.

Optionally, the program may be linked with the -threaded option (see Options affecting linking. This provides two benefits:

  • It enables the -N to be used, which allows threads to run in parallelism on a multi-processor or multi-c