HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

Modulehackage-revdeps-0.4.1GHC2021

Hackage.RevDeps

Functions to list Hackage reverse dependencies.

  • 1 type
  • 6 values
valuelastVersionsOfPackagesWithNeedles
  1. :: (PackageName -> Bool)

    Which packages are we looking for? Could be const True.

  2. -> Set ByteString

    Needles to search in Cabal files.

  3. -> FilePath

    Path to 01-index.tar or 01-index.tar.gz.

  4. -> Maybe UTCTime

    Timestamp of index state at which to stop scanning.

  5. -> IO (Map PackageName ByteString)

    Map from packages with largest versions to their Cabal files.

#

Scan Cabal index and return Cabal files of last versions (not necessarily latest releases or revisions), which contain one of the needles as an entire word (separated by spaces or punctuation).

To avoid ambiguity: we first select the last versions, then filter them by needles.