extra-0.1: Extra functions I use.

Safe HaskellSafe-Inferred

Control.Concurrent.Extra

Synopsis

Documentation

withNumCapabilities :: Int -> IO a -> IO aSource

On GHC 7.6 and above with the -threaded flag, brackets a call to setNumCapabilities. On lower versions (which lack setNumCapabilities) this function just runs the argument action.

setNumCapabilities :: Int -> IO ()Source

A version of setNumCapabilities that works on all versions of GHC, but has no effect before GHC 7.6.