stack-0.1.0.0: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

Stack.PackageIndex

Description

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

Synopsis

Documentation

updateAllIndices :: (MonadIO m, MonadLogger m, MonadThrow m, MonadReader env m, HasHttpManager env, HasConfig env, MonadBaseControl IO m, MonadCatch m) => EnvOverride -> m () Source

Update all of the package indices

data PackageCache Source

Constructors

PackageCache 

Fields

pcOffset :: !Int64

offset in bytes into the 00-index.tar file for the .cabal file contents

pcSize :: !Int64

size in bytes of the .cabal file

pcDownload :: !(Maybe PackageDownload)
 

getPackageCaches :: (MonadIO m, MonadLogger m, MonadReader env m, HasConfig env, MonadThrow m, HasHttpManager env, MonadBaseControl IO m, MonadCatch m) => EnvOverride -> m (Map PackageIdentifier (PackageIndex, PackageCache)) Source

Load the cached package URLs, or created the cache if necessary.