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
value
pkgPathEnvVar :: PackageDescription-> Stringpath component; one of "bindir", "libdir", -- "datadir", "libexecdir", or "sysconfdir"
-> Stringenvironment 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.