HORIZON HASKELLDocslts/ghc-9.14.xb2f3bfd2026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · b2f3bfd · 2026-10-11

ModuleCabal-3.16.0.0Haskell2010

Distribution.Types.ParStrat

  • 3 types
  • 1 value
  • PackageCabal-3.16.0.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.16.0.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)