cabal-install-3.14.2.0: The command-line interface for Cabal and Hackage.
Copyright(c) David Himmelstrup 2005
Duncan Coutts 2005
LicenseBSD-like
Maintainer[email protected]
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Distribution.Client.Configure

Description

High level interface to configuring a package.

Synopsis

Documentation

configure :: Verbosity -> PackageDBStackCWD -> 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. Currently, it implements no specific restrictions and allows any version, unless the second argument is filled with a Version, in which case this version is picked.

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.

writeConfigFlagsTo Source #

Arguments

:: Verbosity 
-> FilePath

path to saved flags file

-> (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.