cabal-install-3.8.1.0: The command-line interface for Cabal and Hackage.
Copyright(c) David Himmelstrup 2005
Duncan Coutts 2005
LicenseBSD-like
Maintainercabal-devel@haskell.org
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Distribution.Client.Configure

Description

High level interface to configuring a package.

Synopsis

Documentation

configure :: Verbosity -> PackageDBStack -> RepoContext -> Compiler -> Platform -> ProgramDb -> ConfigFlags -> ConfigExFlags -> [String] -> IO () Source #

Configure the package found in the local directory

chooseCabalVersion :: ConfigExFlags -> Maybe Version -> VersionRange Source #

Choose the Cabal version such that the setup scripts compiled against this version will support the given command-line flags.

checkConfigExFlags :: Package pkg => Verbosity -> InstalledPackageIndex -> PackageIndex pkg -> ConfigExFlags -> IO () Source #

Warn if any constraints or preferences name packages that are not in the source package index or installed package index.

Saved configure flags

readConfigFlagsFrom Source #

Arguments

:: FilePath

path to saved flags file

-> IO (ConfigFlags, ConfigExFlags) 

Read saved configure flags and restore the saved environment from the specified files.

readConfigFlags Source #

Arguments

:: FilePath
--build-dir
-> IO (ConfigFlags, ConfigExFlags) 

Read saved configure flags and restore the saved environment from the usual location.

cabalConfigFlagsFile :: FilePath -> FilePath Source #

The path (relative to --build-dir) where the arguments to configure should be saved.

writeConfigFlagsTo Source #

Arguments

:: FilePath

path to saved flags file

-> Verbosity 
-> (ConfigFlags, ConfigExFlags) 
-> IO () 

Save the configure flags and environment to the specified files.

writeConfigFlags Source #

Arguments

:: Verbosity 
-> FilePath
--build-dir
-> (ConfigFlags, ConfigExFlags) 
-> IO () 

Save the build flags to the usual location.