stackage-curator-0.14.4.1: Tools for curating Stackage bundles

Safe HaskellNone
LanguageHaskell2010

Stackage.PackageIndex

Contents

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.

data SimplifiedPackageDescription Source #

Instances

Generic SimplifiedPackageDescription Source # 
HasTypeHash SimplifiedPackageDescription Source # 
Store SimplifiedPackageDescription Source # 
type Rep SimplifiedPackageDescription Source # 
type Rep SimplifiedPackageDescription = D1 (MetaData "SimplifiedPackageDescription" "Stackage.PackageIndex" "stackage-curator-0.14.4.1-4nftsHNaDBbGG7piIyauP" False) (C1 (MetaCons "SimplifiedPackageDescription" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "spdName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PackageName)) (S1 (MetaSel (Just Symbol "spdVersion") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Version))) ((:*:) (S1 (MetaSel (Just Symbol "spdCabalFileInfo") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CabalFileInfo)) ((:*:) (S1 (MetaSel (Just Symbol "spdCondLibrary") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (CondTree ConfVar [Dependency] SimplifiedComponentInfo)))) (S1 (MetaSel (Just Symbol "spdCondExecutables") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [(String, CondTree ConfVar [Dependency] SimplifiedComponentInfo)]))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "spdCondTestSuites") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [(String, CondTree ConfVar [Dependency] SimplifiedComponentInfo)])) ((:*:) (S1 (MetaSel (Just Symbol "spdCondBenchmarks") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [(String, CondTree ConfVar [Dependency] SimplifiedComponentInfo)])) (S1 (MetaSel (Just Symbol "spdSetupDeps") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Dependency])))) ((:*:) (S1 (MetaSel (Just Symbol "spdPackageFlags") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Map FlagName Bool))) ((:*:) (S1 (MetaSel (Just Symbol "spdGithubPings") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Set Text))) (S1 (MetaSel (Just Symbol "spdCabalVersion") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Version))))))))

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

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

getAllCabalHashesCommit :: MonadIO m => m Text Source #

Get the Git commit of the all-cabal-hashes repo at its current state

Orphan instances