HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

ModuleCabal-3.12.1.0Haskell2010

Distribution.Simple.Build

This is the entry point to actually building the modules in a package. It doesn't actually do much itself, most of the work is delegated to compiler-specific actions. It does do some non-compiler specific bits like running pre-processors.

  • 2 types
  • 9 values
  • PackageCabal-3.12.1.0
  • Exports11
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceBuild.hs

Build

1 declaration

Repl

2 declarations

Build preparation

5 declarations

Legacy functions

valuecomponentInitialBuildSteps
  1. :: FilePath

    "dist" prefix

  2. -> PackageDescription

    mostly information from the .cabal file

  3. -> LocalBuildInfo

    Configuration information

  4. -> ComponentLocalBuildInfo

    Build info about the component

  5. -> Verbosity

    The verbosity to use

  6. -> IO ()
#

Deprecated. This function does not prepare all source files for a component. Suggestion: use 'Setup repl compName --repl-multi-file=fn'.

Creates the autogenerated files for a particular configured component.

Legacy function: does not run pre-build hooks or pre-processors. This function is insufficient on its own to prepare the build for a component.

Consumers wanting to prepare the sources of a component, e.g. in order to launch a REPL session, are advised to run Setup repl compName --repl-multi-file=fn instead.

valueinitialBuildSteps
  1. :: FilePath

    "dist" prefix

  2. -> PackageDescription

    mostly information from the .cabal file

  3. -> LocalBuildInfo

    Configuration information

  4. -> Verbosity

    The verbosity to use

  5. -> IO ()
#

Deprecated. This function does not prepare all source files for a package. Suggestion: use 'Setup repl --repl-multi-file=fn'.

Runs componentInitialBuildSteps on every configured component.

Legacy function: does not run pre-build hooks or pre-processors. This function is insufficient on its own to prepare the build for a package.

Consumers wanting to prepare the sources of a package, e.g. in order to launch a REPL session, are advised to run Setup repl --repl-multi-file=fn instead.

Internal package database creation

1 declaration