HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

ModuleCabal-3.12.1.0Haskell2010

Distribution.Simple.Program.HcPkg

This module provides an library interface to the hc-pkg program. Currently only GHC and GHCJS have hc-pkg programs.

  • 2 types
  • 20 values
  • PackageCabal-3.12.1.0
  • Exports22
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceHcPkg.hs

Types

3 declarations
datadata HcPkgInfo
#

Information about the features and capabilities of an hc-pkg program.

Constructors

datadata RegisterOptions
#

Additional variations in the behaviour for register.

Constructors

Actions

10 declarations
valuelist :: HcPkgInfo -> Verbosity -> PackageDB -> IO [PackageId]
#

Call hc-pkg to get the source package Id of all the packages in the given package database.

This is much less information than with dump, but also rather quicker. Note in particular that it does not include the UnitId, just the source PackageId which is not necessarily unique in any package db.

Program invocations

9 declarations