Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
- spdCondLibrary :: Maybe (CondTree ConfVar [Dependency] SimplifiedComponentInfo)
- spdCondExecutables :: [(String, CondTree ConfVar [Dependency] SimplifiedComponentInfo)]
- spdCondTestSuites :: [(String, CondTree ConfVar [Dependency] SimplifiedComponentInfo)]
- spdCondBenchmarks :: [(String, CondTree ConfVar [Dependency] SimplifiedComponentInfo)]
- spdPackageFlags :: Map FlagName Bool
- spdGithubPings :: Set Text
- data SimplifiedComponentInfo = SimplifiedComponentInfo {
- sciBuildTools :: [Dependency]
- sciModules :: Set Text
- getLatestDescriptions :: MonadIO m => (PackageName -> Version -> Bool) -> (SimplifiedPackageDescription -> IO desc) -> m (Map PackageName desc)
- gpdFromLBS :: MonadThrow m => FilePath -> LByteString -> m GenericPackageDescription
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
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.
gpdFromLBS :: MonadThrow m => FilePath -> LByteString -> m GenericPackageDescription Source