| Haskell Hierarchical Libraries (Cabal package) | Source code | Contents | Index

Distribution.Simple.LocalBuildInfo

Portability | portable
Stability | alpha
Maintainer | Isaac Jones <ijones@syntaxpolice.org>

Description
Definition of the LocalBuildInfo data type.
Synopsis

data LocalBuildInfo = LocalBuildInfo {

prefix :: FilePath
bindir :: FilePath
libdir :: FilePath
libsubdir :: FilePath
libexecdir :: FilePath
datadir :: FilePath
datasubdir :: FilePath
compiler :: Compiler
buildDir :: FilePath
packageDeps :: [PackageIdentifier]
withPrograms :: ProgramConfiguration
userConf :: Bool
withHappy :: (Maybe FilePath)
withAlex :: (Maybe FilePath)
withHsc2hs :: (Maybe FilePath)
withC2hs :: (Maybe FilePath)
withCpphs :: (Maybe FilePath)
withGreencard :: (Maybe FilePath)
withVanillaLib :: Bool
withProfLib :: Bool
withProfExe :: Bool
withGHCiLib :: Bool
splitObjs :: Bool

}

default_prefix :: IO String
default_bindir :: FilePath
default_libdir :: Compiler -> FilePath
default_libsubdir :: Compiler -> FilePath
default_libexecdir :: FilePath
default_datadir :: PackageDescription -> IO FilePath
default_datasubdir :: FilePath
mkLibDir :: PackageDescription -> LocalBuildInfo -> CopyDest -> FilePath
mkLibDirRel :: PackageDescription -> LocalBuildInfo -> CopyDest -> Maybe FilePath
mkBinDir :: PackageDescription -> LocalBuildInfo -> CopyDest -> FilePath
mkBinDirRel :: PackageDescription -> LocalBuildInfo -> CopyDest -> Maybe FilePath
mkLibexecDir :: PackageDescription -> LocalBuildInfo -> CopyDest -> FilePath
mkLibexecDirRel :: PackageDescription -> LocalBuildInfo -> CopyDest -> Maybe FilePath
mkDataDir :: PackageDescription -> LocalBuildInfo -> CopyDest -> FilePath
mkDataDirRel :: PackageDescription -> LocalBuildInfo -> CopyDest -> Maybe FilePath
mkHaddockDir :: PackageDescription -> LocalBuildInfo -> CopyDest -> FilePath
mkProgDir :: PackageDescription -> LocalBuildInfo -> CopyDest -> FilePath
absolutePath :: PackageDescription -> LocalBuildInfo -> CopyDest -> FilePath -> FilePath
prefixRelPath :: PackageDescription -> LocalBuildInfo -> CopyDest -> FilePath -> Maybe FilePath
substDir :: PackageDescription -> LocalBuildInfo -> String -> String
distPref :: FilePath
srcPref :: FilePath
autogenModulesDir :: LocalBuildInfo -> String
mkIncludeDir :: FilePath -> FilePath

Documentation
data LocalBuildInfo

Data cached after configuration step.
Constructors

LocalBuildInfo |

prefix :: FilePath | The installation directory (eg. `usrlocal`, or `C:Program Filesfoo-1.2` on Windows.
bindir :: FilePath | The bin directory
libdir :: FilePath | The lib directory
libsubdir :: FilePath | Subdirectory of libdir into which libraries are installed
libexecdir :: FilePath | The lib directory
datadir :: FilePath | The data directory
datasubdir :: FilePath | Subdirectory of datadir into which data files are installed
compiler :: Compiler | The compiler we're building with
buildDir :: FilePath | Where to put the result of building.
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.
withPrograms :: ProgramConfiguration |
userConf :: Bool | Was this package configured with --user?
withHappy :: (Maybe FilePath) | Might be the location of the Happy executable.
withAlex :: (Maybe FilePath) | Might be the location of the Alex executable.
withHsc2hs :: (Maybe FilePath) | Might be the location of the Hsc2hs executable.
withC2hs :: (Maybe FilePath) | Might be the location of the C2hs executable.
withCpphs :: (Maybe FilePath) | Might be the location of the Cpphs executable.
withGreencard :: (Maybe FilePath) | Might be the location of the GreenCard executable.
withVanillaLib :: Bool | Whether to build normal libs.
withProfLib :: Bool | Whether to build profiling versions of libs.
withProfExe :: Bool | Whether to build executables for profiling.
withGHCiLib :: Bool | Whether to build libs suitable for use with GHCi.
splitObjs :: Bool | Use -split-objs with GHC, if available

Instances

Read LocalBuildInfo
Show LocalBuildInfo

default_prefix :: IO String
default_bindir :: FilePath
default_libdir :: Compiler -> FilePath
default_libsubdir :: Compiler -> FilePath
default_libexecdir :: FilePath
default_datadir :: PackageDescription -> IO FilePath
default_datasubdir :: FilePath
mkLibDir :: PackageDescription -> LocalBuildInfo -> CopyDest -> FilePath
mkLibDirRel :: PackageDescription -> LocalBuildInfo -> CopyDest -> Maybe FilePath
mkBinDir :: PackageDescription -> LocalBuildInfo -> CopyDest -> FilePath
mkBinDirRel :: PackageDescription -> LocalBuildInfo -> CopyDest -> Maybe FilePath
mkLibexecDir :: PackageDescription -> LocalBuildInfo -> CopyDest -> FilePath
mkLibexecDirRel :: PackageDescription -> LocalBuildInfo -> CopyDest -> Maybe FilePath
mkDataDir :: PackageDescription -> LocalBuildInfo -> CopyDest -> FilePath
mkDataDirRel :: PackageDescription -> LocalBuildInfo -> CopyDest -> Maybe FilePath
mkHaddockDir :: PackageDescription -> LocalBuildInfo -> CopyDest -> FilePath
mkProgDir :: PackageDescription -> LocalBuildInfo -> CopyDest -> FilePath
Directory for program modules (Hugs only).
absolutePath :: PackageDescription -> LocalBuildInfo -> CopyDest -> FilePath -> FilePath
prefixRelPath :: PackageDescription -> LocalBuildInfo -> CopyDest -> FilePath -> Maybe FilePath
substDir :: PackageDescription -> LocalBuildInfo -> String -> String
distPref :: FilePath
srcPref :: FilePath
autogenModulesDir :: LocalBuildInfo -> String
The directory in which we put auto-generated modules
mkIncludeDir :: FilePath -> FilePath
The place where install-includes are installed, relative to libdir
Produced by Haddock version 0.8