Cabal- A framework for packaging Haskell softwareSource codeContentsIndex
MaintainerIsaac Jones <>
Installation directories
Deprecated install dir functions
Build directories
Definition of the LocalBuildInfo data type. This is basically the information that is gathered by the end of the configuration step which could include package information from ghc-pkg, flags the user passed to configure, and the location of tools in the PATH.
data LocalBuildInfo = LocalBuildInfo {
installDirTemplates :: InstallDirTemplates
compiler :: Compiler
buildDir :: FilePath
scratchDir :: FilePath
packageDeps :: [PackageIdentifier]
pkgDescrFile :: Maybe FilePath
localPkgDescr :: PackageDescription
withPrograms :: ProgramConfiguration
withPackageDB :: PackageDB
withVanillaLib :: Bool
withProfLib :: Bool
withSharedLib :: Bool
withProfExe :: Bool
withOptimization :: Bool
withGHCiLib :: Bool
splitObjs :: Bool
module Distribution.Simple.InstallDirs
absoluteInstallDirs :: PackageDescription -> LocalBuildInfo -> CopyDest -> InstallDirs FilePath
prefixRelativeInstallDirs :: PackageDescription -> LocalBuildInfo -> InstallDirs (Maybe FilePath)
mkLibDir :: PackageDescription -> LocalBuildInfo -> CopyDest -> FilePath
mkBinDir :: PackageDescription -> LocalBuildInfo -> CopyDest -> FilePath
mkLibexecDir :: PackageDescription -> LocalBuildInfo -> CopyDest -> FilePath
mkDataDir :: PackageDescription -> LocalBuildInfo -> CopyDest -> FilePath
distPref :: FilePath
srcPref :: FilePath
hscolourPref :: PackageDescription -> FilePath
haddockPref :: PackageDescription -> FilePath
autogenModulesDir :: LocalBuildInfo -> String
data LocalBuildInfo Source
Data cached after configuration step. See also Distribution.Setup.ConfigFlags.
installDirTemplates :: InstallDirTemplatesThe installation directories for the various differnt kinds of files
compiler :: CompilerThe compiler we're building with
buildDir :: FilePathWhere to build the package.
scratchDir :: FilePathWhere to put the result of the Hugs build.
packageDeps :: [PackageIdentifier]Which packages we depend on, exactly. The PackageDescription specifies a set of build dependencies that must be satisfied in terms of version ranges. This field fixes those dependencies to the specific versions available on this machine for this compiler.
pkgDescrFile :: Maybe FilePaththe filename containing the .cabal file, if available
localPkgDescr :: PackageDescriptionThe resolved package description, that does not contain any conditionals.
withPrograms :: ProgramConfigurationLocation and args for all programs
withPackageDB :: PackageDBWhat package database to use, global/user
withVanillaLib :: BoolWhether to build normal libs.
withProfLib :: BoolWhether to build profiling versions of libs.
withSharedLib :: BoolWhether to build shared versions of libs.
withProfExe :: BoolWhether to build executables for profiling.
withOptimization :: BoolWhether to build with optimization (if available).
withGHCiLib :: BoolWhether to build libs suitable for use with GHCi.
splitObjs :: BoolUse -split-objs with GHC, if available
show/hide Instances
Installation directories
module Distribution.Simple.InstallDirs
absoluteInstallDirs :: PackageDescription -> LocalBuildInfo -> CopyDest -> InstallDirs FilePathSource
See absoluteInstallDirs
prefixRelativeInstallDirs :: PackageDescription -> LocalBuildInfo -> InstallDirs (Maybe FilePath)Source
See prefixRelativeInstallDirs
Deprecated install dir functions
mkLibDir :: PackageDescription -> LocalBuildInfo -> CopyDest -> FilePathSource
mkBinDir :: PackageDescription -> LocalBuildInfo -> CopyDest -> FilePathSource
mkLibexecDir :: PackageDescription -> LocalBuildInfo -> CopyDest -> FilePathSource
mkDataDir :: PackageDescription -> LocalBuildInfo -> CopyDest -> FilePathSource
Build directories
distPref :: FilePathSource
srcPref :: FilePathSource
hscolourPref :: PackageDescription -> FilePathSource
haddockPref :: PackageDescription -> FilePathSource
autogenModulesDir :: LocalBuildInfo -> StringSource
The directory in which we put auto-generated modules
Produced by Haddock version 2.1.0