HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

ModuleCabal-3.12.1.0Haskell2010

Distribution.Types.ParStrat

  • 3 types
  • 1 value
  • PackageCabal-3.12.1.0
  • Exports4
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceParStrat.hs
datadata ParStratX sem
#

How to control parallelism, e.g. a fixed number of jobs or by using a system semaphore.

Constructors

  • NumJobs (Maybe Int)

    Compile in parallel with the given number of jobs (`-jN` or `-j`).

  • UseSem sem

    `--semaphore`: use a system semaphore to control parallelism.

  • Serial

    No parallelism (neither `-jN` nor `--semaphore`, but could be `-j1`).

Instances1Show
  • Show sem => Show (ParStratX sem)Defined in Cabal-3.12.1.0 · Distribution.Types.ParStrat
typetype ParStrat = ParStratX String
#

Used by Cabal to indicate that we want to use this specific semaphore (created by cabal-install)