Cabal-1.4.0.0: A framework for packaging Haskell softwareSource codeContentsIndex
Distribution.Simple.Configure
Portabilityportable
Stabilityalpha
MaintainerIsaac Jones <ijones@syntaxpolice.org>
Description
Explanation: Perform the "./setup configure" action. Outputs the dist/setup-config file.
Synopsis
configure :: (Either GenericPackageDescription PackageDescription, HookedBuildInfo) -> ConfigFlags -> IO LocalBuildInfo
writePersistBuildConfig :: FilePath -> LocalBuildInfo -> IO ()
getPersistBuildConfig :: FilePath -> IO LocalBuildInfo
checkPersistBuildConfig :: FilePath -> FilePath -> IO ()
maybeGetPersistBuildConfig :: FilePath -> IO (Maybe LocalBuildInfo)
localBuildInfoFile :: FilePath -> FilePath
getInstalledPackages :: Verbosity -> Compiler -> PackageDB -> ProgramConfiguration -> IO (Maybe (PackageIndex InstalledPackageInfo))
configDependency :: Verbosity -> PackageIndex InstalledPackageInfo -> Dependency -> IO PackageIdentifier
configCompiler :: Maybe CompilerFlavor -> Maybe FilePath -> Maybe FilePath -> ProgramConfiguration -> Verbosity -> IO (Compiler, ProgramConfiguration)
configCompilerAux :: ConfigFlags -> IO (Compiler, ProgramConfiguration)
ccLdOptionsBuildInfo :: [String] -> [String] -> BuildInfo
tryGetConfigStateFile :: Read a => FilePath -> IO (Either String a)
Documentation
configure :: (Either GenericPackageDescription PackageDescription, HookedBuildInfo) -> ConfigFlags -> IO LocalBuildInfoSource
Perform the "./setup configure" action. Returns the .setup-config file.
writePersistBuildConfig :: FilePath -> LocalBuildInfo -> IO ()Source
After running configure, output the LocalBuildInfo to the localBuildInfoFile.
getPersistBuildConfig :: FilePath -> IO LocalBuildInfoSource
Read the localBuildInfoFile. Error if it doesn't exist. Also fail if the file containing LocalBuildInfo is older than the .cabal file, indicating that a re-configure is required.
checkPersistBuildConfig :: FilePath -> FilePath -> IO ()Source
Check that localBuildInfoFile is up-to-date with respect to the .cabal file.
maybeGetPersistBuildConfig :: FilePath -> IO (Maybe LocalBuildInfo)Source
Try to read the localBuildInfoFile.
localBuildInfoFile :: FilePath -> FilePathSource
dist/setup-config
getInstalledPackages :: Verbosity -> Compiler -> PackageDB -> ProgramConfiguration -> IO (Maybe (PackageIndex InstalledPackageInfo))Source
configDependency :: Verbosity -> PackageIndex InstalledPackageInfo -> Dependency -> IO PackageIdentifierSource
Test for a package dependency and record the version we have installed.
configCompiler :: Maybe CompilerFlavor -> Maybe FilePath -> Maybe FilePath -> ProgramConfiguration -> Verbosity -> IO (Compiler, ProgramConfiguration)Source
configCompilerAux :: ConfigFlags -> IO (Compiler, ProgramConfiguration)Source
ccLdOptionsBuildInfo :: [String] -> [String] -> BuildInfoSource

Makes a BuildInfo from C compiler and linker flags.

This can be used with the output from configuration programs like pkg-config and similar package-specific programs like mysql-config, freealut-config etc. For example:

 ccflags <- rawSystemProgramStdoutConf verbosity prog conf ["--cflags"]
 ldflags <- rawSystemProgramStdoutConf verbosity prog conf ["--libs"]
 return (ccldOptionsBuildInfo (words ccflags) (words ldflags))
tryGetConfigStateFile :: Read a => FilePath -> IO (Either String a)Source
Produced by Haddock version 2.3.0