Haskell Core Libraries (Cabal package)ContentsIndex
Distribution.Simple.Configure
Portabilityportable
Stabilityalpha
MaintainerIsaac Jones <ijones@syntaxpolice.org>
Description
Explanation: Perform the "./setup configure" action. Outputs the .setup-config file.
Synopsis
writePersistBuildConfig :: LocalBuildInfo -> IO ()
getPersistBuildConfig :: IO LocalBuildInfo
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)
withProfLib :: Bool
withProfExe :: Bool
withGHCiLib :: Bool
}
configure :: PackageDescription -> ConfigFlags -> IO LocalBuildInfo
localBuildInfoFile :: FilePath
findProgram :: String -> Maybe FilePath -> IO (Maybe FilePath)
getInstalledPackages :: Compiler -> Bool -> Int -> IO [PackageIdentifier]
configCompiler :: Maybe CompilerFlavor -> Maybe FilePath -> Maybe FilePath -> Int -> IO Compiler
Documentation
writePersistBuildConfig :: LocalBuildInfo -> IO ()
getPersistBuildConfig :: IO LocalBuildInfo
data LocalBuildInfo
Data cached after configuration step.
Constructors
LocalBuildInfo
prefix :: FilePathThe installation directory (eg. usrlocal, or C:Program Filesfoo-1.2 on Windows.
bindir :: FilePathThe bin directory
libdir :: FilePathThe lib directory
libsubdir :: FilePathSubdirectory of libdir into which libraries are installed
libexecdir :: FilePathThe lib directory
datadir :: FilePathThe data directory
datasubdir :: FilePathSubdirectory of datadir into which data files are installed
compiler :: CompilerThe compiler we're building with
buildDir :: FilePathWhere 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 :: BoolWas 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.
withProfLib :: Bool
withProfExe :: Bool
withGHCiLib :: Bool
show/hide Instances
configure :: PackageDescription -> ConfigFlags -> IO LocalBuildInfo
localBuildInfoFile :: FilePath
findProgram
:: Stringprogram name
-> Maybe FilePathoptional explicit path
-> IO (Maybe FilePath)
Return the explicit path if given, otherwise look for the program name in the path.
getInstalledPackages :: Compiler -> Bool -> Int -> IO [PackageIdentifier]
configCompiler :: Maybe CompilerFlavor -> Maybe FilePath -> Maybe FilePath -> Int -> IO Compiler
Produced by Haddock version 0.7