Hoogle Search

Within LTS Haskell 24.66 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. localComponentId :: LocalBuildInfo -> ComponentId

    Cabal Distribution.Simple.LocalBuildInfo

    Extract the ComponentId from the public library component of a LocalBuildInfo if it exists, or make a fake component ID based on the package ID.

  2. localUnitId :: LocalBuildInfo -> UnitId

    Cabal Distribution.Simple.LocalBuildInfo

    Extract the UnitId from the library component of a LocalBuildInfo if it exists, or make a fake unit ID based on the package ID.

  3. allPackagesBySourcePackageId :: HasUnitId a => PackageIndex a -> [(PackageId, [a])]

    Cabal Distribution.Simple.PackageIndex

    Get all the packages from the index. They are grouped by source package id (package name and version). (Doesn't include private libraries)

  4. allPackagesBySourcePackageIdAndLibName :: HasUnitId a => PackageIndex a -> [((PackageId, LibraryName), [a])]

    Cabal Distribution.Simple.PackageIndex

    Get all the packages from the index. They are grouped by source package id and library name. This DOES include internal libraries.

  5. deleteSourcePackageId :: PackageId -> InstalledPackageIndex -> InstalledPackageIndex

    Cabal Distribution.Simple.PackageIndex

    Removes all packages with this source PackageId from the index.

  6. deleteUnitId :: UnitId -> InstalledPackageIndex -> InstalledPackageIndex

    Cabal Distribution.Simple.PackageIndex

    Removes a single installed package from the index.

  7. lookupComponentId :: PackageIndex a -> ComponentId -> Maybe a

    Cabal Distribution.Simple.PackageIndex

    Does a lookup by component identifier. In the absence of Backpack, this is just a lookupUnitId.

  8. lookupPackageId :: PackageIndex a -> PackageId -> Maybe a

    Cabal Distribution.Simple.PackageIndex

    Convenient alias of lookupSourcePackageId, but assuming only one package per package ID.

  9. lookupSourcePackageId :: PackageIndex a -> PackageId -> [a]

    Cabal Distribution.Simple.PackageIndex

    Does a lookup by source package id (name & version). There can be multiple installed packages with the same source PackageId but different UnitId. They are returned in order of preference, with the most preferred first.

  10. lookupUnitId :: PackageIndex a -> UnitId -> Maybe a

    Cabal Distribution.Simple.PackageIndex

    Does a lookup by unit identifier. Since multiple package DBs mask each other by UnitId, then we get back at most one package.

Page 431 of many | Previous | Next