stackage-0.6.0: "Stable Hackage," tools for creating a vetted set of packages from Hackage.

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.

Constructors

UnparsedCabalFile 

Fields

ucfName :: PackageName
 
ucfVersion :: Version
 
ucfParse :: forall m. MonadThrow m => m GenericPackageDescription
 

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

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