Cabal-1.14.0: A framework for packaging Haskell software

Portabilityportable
Maintainercabal-devel@haskell.org
Safe HaskellSafe-Infered

Distribution.Simple.Program.HcPkg

Contents

Description

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

Synopsis

Documentation

register :: Verbosity -> ConfiguredProgram -> PackageDBStack -> Either FilePath InstalledPackageInfo -> IO ()Source

Call hc-pkg to register a package.

 hc-pkg register {filename | -} [--user | --global | --package-conf]

reregister :: Verbosity -> ConfiguredProgram -> PackageDBStack -> Either FilePath InstalledPackageInfo -> IO ()Source

Call hc-pkg to re-register a package.

 hc-pkg register {filename | -} [--user | --global | --package-conf]

unregister :: Verbosity -> ConfiguredProgram -> PackageDB -> PackageId -> IO ()Source

Call hc-pkg to unregister a package

 hc-pkg unregister [pkgid] [--user | --global | --package-conf]

expose :: Verbosity -> ConfiguredProgram -> PackageDB -> PackageId -> IO ()Source

Call hc-pkg to expose a package.

 hc-pkg expose [pkgid] [--user | --global | --package-conf]

hide :: Verbosity -> ConfiguredProgram -> PackageDB -> PackageId -> IO ()Source

Call hc-pkg to expose a package.

 hc-pkg expose [pkgid] [--user | --global | --package-conf]

dump :: Verbosity -> ConfiguredProgram -> PackageDB -> IO [InstalledPackageInfo]Source

Call hc-pkg to get all the installed packages.

Program invocations