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.PathsModule

Generating the Paths_pkgname module.

This is a module that Cabal generates for the benefit of packages. It enables them to find their version number and find any installed data files at runtime. This code should probably be split off into another module.

  • 2 values
  • PackageCabal-3.12.1.0
  • Exports2
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourcePathsModule.hs
valuepkgPathEnvVar
  1. :: PackageDescription
  2. -> String

    path component; one of "bindir", "libdir", -- "datadir", "libexecdir", or "sysconfdir"

  3. -> String

    environment variable name

#

Generates the name of the environment variable controlling the path component of interest.

Note: The format of these strings is part of Cabal's public API; changing this function constitutes a *backwards-compatibility* break.