Copyright | (c) 2005 David Himmelstrup 2007 Bjorn Bringert 2007-2010 Duncan Coutts |
---|---|
License | BSD-like |
Maintainer | cabal-devel@haskell.org |
Stability | provisional |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
High level interface to package installation.
Synopsis
- install :: Verbosity -> PackageDBStackCWD -> RepoContext -> Compiler -> Platform -> ProgramDb -> GlobalFlags -> ConfigFlags -> ConfigExFlags -> InstallFlags -> HaddockFlags -> TestFlags -> BenchmarkFlags -> [UserTarget] -> IO ()
- makeInstallContext :: Verbosity -> InstallArgs -> Maybe [UserTarget] -> IO InstallContext
- makeInstallPlan :: Verbosity -> InstallArgs -> InstallContext -> IO (Progress String String SolverInstallPlan)
- processInstallPlan :: Verbosity -> InstallArgs -> InstallContext -> SolverInstallPlan -> IO ()
- type InstallArgs = (PackageDBStackCWD, RepoContext, Compiler, Platform, ProgramDb, GlobalFlags, ConfigFlags, ConfigExFlags, InstallFlags, HaddockFlags, TestFlags, BenchmarkFlags)
- type InstallContext = (InstalledPackageIndex, SourcePackageDb, Maybe PkgConfigDb, [UserTarget], [PackageSpecifier UnresolvedSourcePackage], HttpTransport)
- pruneInstallPlan :: Package targetpkg => [PackageSpecifier targetpkg] -> SolverInstallPlan -> Progress String String SolverInstallPlan
High-level interface
install :: Verbosity -> PackageDBStackCWD -> RepoContext -> Compiler -> Platform -> ProgramDb -> GlobalFlags -> ConfigFlags -> ConfigExFlags -> InstallFlags -> HaddockFlags -> TestFlags -> BenchmarkFlags -> [UserTarget] -> IO () Source #
Installs the packages needed to satisfy a list of dependencies.
Lower-level interface that allows to manipulate the install plan
makeInstallContext :: Verbosity -> InstallArgs -> Maybe [UserTarget] -> IO InstallContext Source #
Make an install context given install arguments.
makeInstallPlan :: Verbosity -> InstallArgs -> InstallContext -> IO (Progress String String SolverInstallPlan) Source #
Make an install plan given install context and install arguments.
processInstallPlan :: Verbosity -> InstallArgs -> InstallContext -> SolverInstallPlan -> IO () Source #
Given an install plan, perform the actual installations.
type InstallArgs = (PackageDBStackCWD, RepoContext, Compiler, Platform, ProgramDb, GlobalFlags, ConfigFlags, ConfigExFlags, InstallFlags, HaddockFlags, TestFlags, BenchmarkFlags) Source #
Initial arguments given to install
or makeInstallContext
.
type InstallContext = (InstalledPackageIndex, SourcePackageDb, Maybe PkgConfigDb, [UserTarget], [PackageSpecifier UnresolvedSourcePackage], HttpTransport) Source #
Common context for makeInstallPlan and processInstallPlan.
Prune certain packages from the install plan
pruneInstallPlan :: Package targetpkg => [PackageSpecifier targetpkg] -> SolverInstallPlan -> Progress String String SolverInstallPlan Source #
Remove the provided targets from the install plan.