| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Stackage.PackageIndex
Contents
Description
Dealing with the 00-index file and all its cabal files.
- sourcePackageIndex :: (MonadThrow m, MonadResource m, MonadActive m, MonadBaseControl IO m) => Producer m UnparsedCabalFile
- data UnparsedCabalFile = UnparsedCabalFile {}
- data SimplifiedPackageDescription = SimplifiedPackageDescription {
- spdName :: PackageName
- spdVersion :: Version
- spdCabalFileInfo :: CabalFileInfo
- spdCondLibrary :: Maybe (CondTree ConfVar [Dependency] SimplifiedComponentInfo)
- spdCondExecutables :: [(String, CondTree ConfVar [Dependency] SimplifiedComponentInfo)]
- spdCondTestSuites :: [(String, CondTree ConfVar [Dependency] SimplifiedComponentInfo)]
- spdCondBenchmarks :: [(String, CondTree ConfVar [Dependency] SimplifiedComponentInfo)]
- spdSetupDeps :: Maybe [Dependency]
- spdPackageFlags :: Map FlagName Bool
- spdGithubPings :: Set Text
- spdCabalVersion :: Version
- data SimplifiedComponentInfo = SimplifiedComponentInfo {
- sciBuildTools :: [(ExeName, VersionRange)]
- sciModules :: Set Text
- getLatestDescriptions :: MonadIO m => Set PackageName -> (PackageName -> Version -> Bool) -> (SimplifiedPackageDescription -> Either SomeException desc) -> m (Map PackageName desc, Map PackageName Version)
- gpdFromLBS :: MonadThrow m => FilePath -> LByteString -> m GenericPackageDescription
- getAllCabalHashesCommit :: MonadIO m => m (Either SomeException Text)
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
| |
data SimplifiedPackageDescription Source #
Constructors
data SimplifiedComponentInfo Source #
Constructors
| SimplifiedComponentInfo | |
Fields
| |
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.
gpdFromLBS :: MonadThrow m => FilePath -> LByteString -> m GenericPackageDescription Source #
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 # | |
| Store Arch Source # | |
| Store v => Store (Condition v) Source # | |
| Store a => Store (CondTree ConfVar [Dependency] a) Source # | |
| Store a => Store (CondBranch ConfVar [Dependency] a) Source # | |