definition:
|
installMissingDependencies :: Config -> GlobalCache -> [Package]
-> ErrorLogger ()
installMissingDependencies cfg gc deps = when (length missing > 0) $ do
logInfo logmsg
mapM_ (acquireAndInstallPackage cfg) missing
where
missing = filter (not . isPackageInstalled gc) deps
logmsg = "Installing missing dependencies " ++
intercalate "," (map packageId missing)
|
demand:
|
no demanded arguments
|
deterministic:
|
deterministic operation
|
documentation:
|
--- Installs a package's missing dependencies.
|
failfree:
|
<FAILING>
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{(_,_,_) |-> _}
|
name:
|
installMissingDependencies
|
precedence:
|
no precedence defined
|
result-values:
|
_
|
signature:
|
CPM.Config.Config -> GlobalCache -> [CPM.Package.Package]
-> CPM.ErrorLogger.ErrorLogger ()
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
possibly non-reducible on same data term
|