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

A bunch of dirs, paths and file names used for intermediate build steps.

  • 29 values
  • PackageCabal-3.12.1.0
  • Exports29
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceBuildPaths.hs

Create a library name for a bundled shared library from a given name. This matches the naming convention for shared libraries as implemented in GHC's packageHsLibs function in the Packages module. If the given name is prefixed with HS, then this prepends lib and appends the compiler flavour/version and shared library extension e.g.: "HSrts-1.0" -> "libHSrts-1.0-ghc8.7.20190109.so" Otherwise the given name should be prefixed with C, then this strips the C, prepends lib and appends the shared library extension e.g.: Cffi -> "libffi.so"

valueexeExtension :: Platform -> String
#

Default extension for executable files on the current platform. (typically "" on Unix and "exe" on Windows or OS/2)

valuedllExtension :: Platform -> String
#

Extension for dynamically linked (or shared) libraries (typically "so" on Unix and "dll" on Windows)

Extension for static libraries

TODO: Here, as well as in dllExtension, it's really the target OS that we're interested in, not the build OS.

Source files & build directories

6 declarations