Cabal-1.6.0.0: A framework for packaging Haskell softwareContentsIndex
Distribution.Simple.Configure
Portabilityportable
Maintainercabal-devel@haskell.org
Description

This deals with the configure phase. It provides the configure action which is given the package description and configure flags. It then tries to: configure the compiler; resolves any conditionals in the package description; resolve the package dependencies; check if all the extensions used by this package are supported by the compiler; check that all the build tools are available (including version checks if appropriate); checks for any required pkg-config packages (updating the BuildInfo with the results)

Then based on all this it saves the info in the LocalBuildInfo and writes it out to the dist/setup-config file. It also displays various details to the user, the amount of information displayed depending on the verbosity level.

Synopsis
writePersistBuildConfig :: FilePath -> LocalBuildInfo -> IO ()
getPersistBuildConfig :: FilePath -> IO LocalBuildInfo
maybeGetPersistBuildConfig :: FilePath -> IO (Maybe LocalBuildInfo)
tryGetConfigStateFile :: Read a => FilePath -> IO (Either String a)
Documentation
writePersistBuildConfig :: FilePath -> LocalBuildInfo -> IO ()
After running configure, output the LocalBuildInfo to the localBuildInfoFile.
getPersistBuildConfig :: FilePath -> IO LocalBuildInfo
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.
maybeGetPersistBuildConfig :: FilePath -> IO (Maybe LocalBuildInfo)
Try to read the localBuildInfoFile.
tryGetConfigStateFile :: Read a => FilePath -> IO (Either String a)
Produced by Haddock version 0.8