stackage-curator-0.15.0.0: 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.15.0.0-8trSdbTq3Td90E9cWwn9G6" 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 (Maybe [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 Version)))))))

getLatestDescriptions Source #

Arguments

:: MonadIO m 
=> Set PackageName

packages where we ignore the Hackage revisions

-> (PackageName -> Version -> Bool) 
-> (SimplifiedPackageDescription -> Either SomeException desc) 
-> m (Map PackageName desc, Map PackageName Version) 

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

getAllCabalHashesCommit :: MonadIO m => m (Either SomeException Text) Source #

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

Orphan instances

Store FlagName Source # 
Store ConfVar Source # 
Store Dependency Source # 
Store PackageName Source # 
Store CompilerFlavor Source # 
Store Version Source # 
Store VersionRange Source # 
Store OS Source # 

Methods

size :: Size OS #

poke :: OS -> Poke () #

peek :: Peek OS #

Store Arch Source # 

Methods

size :: Size Arch #

poke :: Arch -> Poke () #

peek :: Peek Arch #

Store v => Store (Condition v) Source # 

Methods

size :: Size (Condition v) #

poke :: Condition v -> Poke () #

peek :: Peek (Condition v) #

Store a => Store (CondTree ConfVar [Dependency] a) Source # 
Store a => Store (CondBranch ConfVar [Dependency] a) Source #