stack-3.7.1: The Haskell Tool Stack
LicenseBSD-3-Clause
Safe HaskellNone
LanguageGHC2021

Stack.Build.Installed

Description

Determine which packages are already installed.

Synopsis

Documentation

getInstalled Source #

Arguments

:: HasEnvConfig env 
=> InstallMap

does not contain any installed information

-> RIO env (InstalledMap, [DumpPackage], [DumpPackage], [DumpPackage]) 

Returns the new InstalledMap and all of the locally registered packages.

toInstallMap :: MonadIO m => SourceMap -> m InstallMap Source #

For the given SourceMap, yield a dictionary of package names for a project's packages and dependencies, and pairs of their relevant database (write-only or mutable) and package versions.