stackage-curator-0.13.1: Tools for curating Stackage bundles

Safe HaskellNone
LanguageHaskell2010

Stackage.PackageIndex

Description

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

Synopsis

Documentation

sourcePackageIndex :: (MonadThrow m, MonadResource m, MonadActive m, MonadBaseControl IO m) => Producer m UnparsedCabalFile Source

Stream all of the cabal files from the 00-index tar file.

data UnparsedCabalFile Source

A cabal file with name and version parsed from the filepath, and the package description itself ready to be parsed. It's left in unparsed form for efficiency.

getLatestDescriptions :: MonadIO m => (PackageName -> Version -> Bool) -> (SimplifiedPackageDescription -> IO desc) -> m (Map PackageName desc) Source

Get all of the latest descriptions for name/version pairs matching the given criterion.