| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Hackage.RevDeps
Description
Functions to list Hackage reverse dependencies.
Synopsis
- latestReleases :: [ByteString] -> FilePath -> Maybe UTCTime -> IO (Map PackageName ByteString)
- extractDependencies :: [PackageName] -> ByteString -> Map PackageName VersionRange
Documentation
Arguments
| :: [ByteString] | Needles to search in Cabal files. |
| -> FilePath | Path to |
| -> Maybe UTCTime | Timestamp of index state at which to stop scanning. |
| -> IO (Map PackageName ByteString) | Map from latest releases to their Cabal files. |
Scan Cabal index 01-index.tar and return Cabal files
of latest releases (not necessarily largest versions), which
contain one of the needles as an entire word (separated by spaces
or punctuation).
To avoid ambiguity: we first select the latest releases, then filter them by needles.
Arguments
| :: [PackageName] | Needles to search. |
| -> ByteString | Content of a Cabal file. |
| -> Map PackageName VersionRange | Needles found in the Cabal file and their version bounds. |
Scan Cabal file looking for package names, coalescing version bounds from all components and under all conditions.