PubGrub.Cache

Cache already loaded packages information.

type Cache

Cache holding already loaded packages information.

Initial empty cache.

addDependencies : String -> Version -> List ( String, Range ) -> Cache -> Cache

Add dependencies of a package to the cache.

addPackageVersions : List ( String, Version ) -> Cache -> Cache

Add a list of packages and versions to the cache.

Number of entries with known dependencies.

Number of unique package versions.

listVersions : Cache -> String -> List Version

List available versions of a package already in cache.

listDependencies : Cache -> String -> Version -> Maybe (List ( String, Range ))

List dependencies of a given package.