stack-1.6.3.1: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

Stack.PackageIndex

Description

Dealing with the 01-index file and all its cabal files.

Synopsis

Documentation

updateAllIndices :: HasConfig env => RIO env () Source #

Update all of the package indices

getPackageCaches :: HasConfig env => RIO env (PackageCache PackageIndex) Source #

Load the package caches, or create the caches if necessary.

This has two levels of caching: in memory, and the on-disk cache. So, feel free to call this function multiple times.

getPackageVersions :: HasConfig env => PackageName -> RIO env (Set Version) Source #

Get the known versions for a given package from the package caches.

See getPackageCaches for performance notes.