This module implements the LookupSet datatype. A lookup set is used to store and query packages for dependency resolution. It stores the source of a package specification alongside the specification itself (e.g. the global repository or the local package cache).
emptySet
:: LookupSet
The empty lookup set. |
setLocallyIgnored
:: LookupSet -> [String] -> LookupSet
Set the set of packages whose locally installed versions are ignored when finding all package versions. |
addPackages
:: LookupSet -> [Package] -> LookupSource -> LookupSet
Adds multiple packages to a lookup set with the same source. |
allPackages
:: LookupSet -> [Package]
|
addPackage
:: LookupSet -> Package -> LookupSource -> LookupSet
Adds a package to a lookup set. |
findAllVersions
:: LookupSet -> String -> Bool -> [Package]
Finds all versions of a package known to the lookup set. |
lookupSource
:: LookupSet -> Package -> Maybe LookupSource
Finds the source for a package in the lookup set |
findLatestVersion
:: LookupSet -> String -> Bool -> Maybe Package
Finds the latest version of a package known to the lookup set. |
findVersion
:: LookupSet -> String -> (Int,Int,Int,Maybe String) -> Maybe Package
Finds a specific version of a package in the lookup set. |
Constructors:
FromRepository
:: LookupSource
FromLocalCache
:: LookupSource
FromGlobalCache
:: LookupSource
Constructors:
Set the set of packages whose locally installed versions are ignored when finding all package versions.
|
Adds multiple packages to a lookup set with the same source.
|
|
Adds a package to a lookup set.
|
Finds all versions of a package known to the lookup set. Returns the packages from the local cache first, and then from other sources. Each group is sorted from newest do oldest version.
|
Finds the source for a package in the lookup set
|
Finds the latest version of a package known to the lookup set.
|
Finds a specific version of a package in the lookup set.
|