/usr/share/doc/libghc-cabal-doc/html/Distribution-Simple-Program-HcPkg.html is in libghc-cabal-doc 1.24.1.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Distribution.Simple.Program.HcPkg</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Distribution-Simple-Program-HcPkg.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Distribution-Simple-Program-HcPkg.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">Cabal-1.24.1.0: A framework for packaging Haskell software</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Duncan Coutts 2009, 2013</td></tr><tr><th>Maintainer</th><td>cabal-devel@haskell.org</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Distribution.Simple.Program.HcPkg</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Program invocations</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This module provides an library interface to the <code>hc-pkg</code> program.
Currently only GHC, GHCJS and LHC have hc-pkg programs.</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span> <a href="#t:HcPkgInfo">HcPkgInfo</a> = <a href="#v:HcPkgInfo">HcPkgInfo</a> {<ul class="subs"><li><a href="#v:hcPkgProgram">hcPkgProgram</a> :: <a href="Distribution-Simple-Program-Types.html#t:ConfiguredProgram">ConfiguredProgram</a></li><li><a href="#v:noPkgDbStack">noPkgDbStack</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></li><li><a href="#v:noVerboseFlag">noVerboseFlag</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></li><li><a href="#v:flagPackageConf">flagPackageConf</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></li><li><a href="#v:supportsDirDbs">supportsDirDbs</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></li><li><a href="#v:requiresDirDbs">requiresDirDbs</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></li><li><a href="#v:nativeMultiInstance">nativeMultiInstance</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></li><li><a href="#v:recacheMultiInstance">recacheMultiInstance</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></li></ul>}</li><li class="src short"><a href="#v:init">init</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:invoke">invoke</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDBStack">PackageDBStack</a> -> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:register">register</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDBStack">PackageDBStack</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</a> <a href="Distribution-InstalledPackageInfo.html#t:InstalledPackageInfo">InstalledPackageInfo</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:reregister">reregister</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDBStack">PackageDBStack</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</a> <a href="Distribution-InstalledPackageInfo.html#t:InstalledPackageInfo">InstalledPackageInfo</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:registerMultiInstance">registerMultiInstance</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDBStack">PackageDBStack</a> -> <a href="Distribution-InstalledPackageInfo.html#t:InstalledPackageInfo">InstalledPackageInfo</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:unregister">unregister</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDB">PackageDB</a> -> <a href="Distribution-Package.html#t:PackageId">PackageId</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:recache">recache</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDB">PackageDB</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:expose">expose</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDB">PackageDB</a> -> <a href="Distribution-Package.html#t:PackageId">PackageId</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:hide">hide</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDB">PackageDB</a> -> <a href="Distribution-Package.html#t:PackageId">PackageId</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:dump">dump</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDB">PackageDB</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> [<a href="Distribution-InstalledPackageInfo.html#t:InstalledPackageInfo">InstalledPackageInfo</a>]</li><li class="src short"><a href="#v:describe">describe</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDBStack">PackageDBStack</a> -> <a href="Distribution-Package.html#t:PackageId">PackageId</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> [<a href="Distribution-InstalledPackageInfo.html#t:InstalledPackageInfo">InstalledPackageInfo</a>]</li><li class="src short"><a href="#v:list">list</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDB">PackageDB</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> [<a href="Distribution-Package.html#t:PackageId">PackageId</a>]</li><li class="src short"><a href="#v:initInvocation">initInvocation</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</a> -> <a href="Distribution-Simple-Program-Run.html#t:ProgramInvocation">ProgramInvocation</a></li><li class="src short"><a href="#v:registerInvocation">registerInvocation</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDBStack">PackageDBStack</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</a> <a href="Distribution-InstalledPackageInfo.html#t:InstalledPackageInfo">InstalledPackageInfo</a> -> <a href="Distribution-Simple-Program-Run.html#t:ProgramInvocation">ProgramInvocation</a></li><li class="src short"><a href="#v:reregisterInvocation">reregisterInvocation</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDBStack">PackageDBStack</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</a> <a href="Distribution-InstalledPackageInfo.html#t:InstalledPackageInfo">InstalledPackageInfo</a> -> <a href="Distribution-Simple-Program-Run.html#t:ProgramInvocation">ProgramInvocation</a></li><li class="src short"><a href="#v:registerMultiInstanceInvocation">registerMultiInstanceInvocation</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDBStack">PackageDBStack</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</a> <a href="Distribution-InstalledPackageInfo.html#t:InstalledPackageInfo">InstalledPackageInfo</a> -> <a href="Distribution-Simple-Program-Run.html#t:ProgramInvocation">ProgramInvocation</a></li><li class="src short"><a href="#v:unregisterInvocation">unregisterInvocation</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDB">PackageDB</a> -> <a href="Distribution-Package.html#t:PackageId">PackageId</a> -> <a href="Distribution-Simple-Program-Run.html#t:ProgramInvocation">ProgramInvocation</a></li><li class="src short"><a href="#v:recacheInvocation">recacheInvocation</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDB">PackageDB</a> -> <a href="Distribution-Simple-Program-Run.html#t:ProgramInvocation">ProgramInvocation</a></li><li class="src short"><a href="#v:exposeInvocation">exposeInvocation</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDB">PackageDB</a> -> <a href="Distribution-Package.html#t:PackageId">PackageId</a> -> <a href="Distribution-Simple-Program-Run.html#t:ProgramInvocation">ProgramInvocation</a></li><li class="src short"><a href="#v:hideInvocation">hideInvocation</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDB">PackageDB</a> -> <a href="Distribution-Package.html#t:PackageId">PackageId</a> -> <a href="Distribution-Simple-Program-Run.html#t:ProgramInvocation">ProgramInvocation</a></li><li class="src short"><a href="#v:dumpInvocation">dumpInvocation</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDB">PackageDB</a> -> <a href="Distribution-Simple-Program-Run.html#t:ProgramInvocation">ProgramInvocation</a></li><li class="src short"><a href="#v:describeInvocation">describeInvocation</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDBStack">PackageDBStack</a> -> <a href="Distribution-Package.html#t:PackageId">PackageId</a> -> <a href="Distribution-Simple-Program-Run.html#t:ProgramInvocation">ProgramInvocation</a></li><li class="src short"><a href="#v:listInvocation">listInvocation</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDB">PackageDB</a> -> <a href="Distribution-Simple-Program-Run.html#t:ProgramInvocation">ProgramInvocation</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:HcPkgInfo" class="def">HcPkgInfo</a> <a href="src/Distribution-Simple-Program-HcPkg.html#HcPkgInfo" class="link">Source</a> <a href="#t:HcPkgInfo" class="selflink">#</a></p><div class="doc"><p>Information about the features and capabilities of an <code>hc-pkg</code>
program.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:HcPkgInfo" class="def">HcPkgInfo</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:hcPkgProgram" class="def">hcPkgProgram</a> :: <a href="Distribution-Simple-Program-Types.html#t:ConfiguredProgram">ConfiguredProgram</a></dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:noPkgDbStack" class="def">noPkgDbStack</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></dfn><div class="doc"><p>no package DB stack supported</p></div></li><li><dfn class="src"><a id="v:noVerboseFlag" class="def">noVerboseFlag</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></dfn><div class="doc"><p>hc-pkg does not support verbosity flags</p></div></li><li><dfn class="src"><a id="v:flagPackageConf" class="def">flagPackageConf</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></dfn><div class="doc"><p>use package-conf option instead of package-db</p></div></li><li><dfn class="src"><a id="v:supportsDirDbs" class="def">supportsDirDbs</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></dfn><div class="doc"><p>supports directory style package databases</p></div></li><li><dfn class="src"><a id="v:requiresDirDbs" class="def">requiresDirDbs</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></dfn><div class="doc"><p>requires directory style package databases</p></div></li><li><dfn class="src"><a id="v:nativeMultiInstance" class="def">nativeMultiInstance</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></dfn><div class="doc"><p>supports --enable-multi-instance flag</p></div></li><li><dfn class="src"><a id="v:recacheMultiInstance" class="def">recacheMultiInstance</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></dfn><div class="doc"><p>supports multi-instance via recache</p></div></li></ul></div></td></tr></table></div></div><div class="top"><p class="src"><a id="v:init" class="def">init</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> () <a href="src/Distribution-Simple-Program-HcPkg.html#init" class="link">Source</a> <a href="#v:init" class="selflink">#</a></p><div class="doc"><p>Call <code>hc-pkg</code> to initialise a package database at the location {path}.</p><pre>hc-pkg init {path}</pre></div></div><div class="top"><p class="src"><a id="v:invoke" class="def">invoke</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDBStack">PackageDBStack</a> -> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> () <a href="src/Distribution-Simple-Program-HcPkg.html#invoke" class="link">Source</a> <a href="#v:invoke" class="selflink">#</a></p><div class="doc"><p>Run <code>hc-pkg</code> using a given package DB stack, directly forwarding the
provided command-line arguments to it.</p></div></div><div class="top"><p class="src"><a id="v:register" class="def">register</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDBStack">PackageDBStack</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</a> <a href="Distribution-InstalledPackageInfo.html#t:InstalledPackageInfo">InstalledPackageInfo</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> () <a href="src/Distribution-Simple-Program-HcPkg.html#register" class="link">Source</a> <a href="#v:register" class="selflink">#</a></p><div class="doc"><p>Call <code>hc-pkg</code> to register a package.</p><pre>hc-pkg register {filename | -} [--user | --global | --package-db]</pre></div></div><div class="top"><p class="src"><a id="v:reregister" class="def">reregister</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDBStack">PackageDBStack</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</a> <a href="Distribution-InstalledPackageInfo.html#t:InstalledPackageInfo">InstalledPackageInfo</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> () <a href="src/Distribution-Simple-Program-HcPkg.html#reregister" class="link">Source</a> <a href="#v:reregister" class="selflink">#</a></p><div class="doc"><p>Call <code>hc-pkg</code> to re-register a package.</p><pre>hc-pkg register {filename | -} [--user | --global | --package-db]</pre></div></div><div class="top"><p class="src"><a id="v:registerMultiInstance" class="def">registerMultiInstance</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDBStack">PackageDBStack</a> -> <a href="Distribution-InstalledPackageInfo.html#t:InstalledPackageInfo">InstalledPackageInfo</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> () <a href="src/Distribution-Simple-Program-HcPkg.html#registerMultiInstance" class="link">Source</a> <a href="#v:registerMultiInstance" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:unregister" class="def">unregister</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDB">PackageDB</a> -> <a href="Distribution-Package.html#t:PackageId">PackageId</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> () <a href="src/Distribution-Simple-Program-HcPkg.html#unregister" class="link">Source</a> <a href="#v:unregister" class="selflink">#</a></p><div class="doc"><p>Call <code>hc-pkg</code> to unregister a package</p><pre>hc-pkg unregister [pkgid] [--user | --global | --package-db]</pre></div></div><div class="top"><p class="src"><a id="v:recache" class="def">recache</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDB">PackageDB</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> () <a href="src/Distribution-Simple-Program-HcPkg.html#recache" class="link">Source</a> <a href="#v:recache" class="selflink">#</a></p><div class="doc"><p>Call <code>hc-pkg</code> to recache the registered packages.</p><pre>hc-pkg recache [--user | --global | --package-db]</pre></div></div><div class="top"><p class="src"><a id="v:expose" class="def">expose</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDB">PackageDB</a> -> <a href="Distribution-Package.html#t:PackageId">PackageId</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> () <a href="src/Distribution-Simple-Program-HcPkg.html#expose" class="link">Source</a> <a href="#v:expose" class="selflink">#</a></p><div class="doc"><p>Call <code>hc-pkg</code> to expose a package.</p><pre>hc-pkg expose [pkgid] [--user | --global | --package-db]</pre></div></div><div class="top"><p class="src"><a id="v:hide" class="def">hide</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDB">PackageDB</a> -> <a href="Distribution-Package.html#t:PackageId">PackageId</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> () <a href="src/Distribution-Simple-Program-HcPkg.html#hide" class="link">Source</a> <a href="#v:hide" class="selflink">#</a></p><div class="doc"><p>Call <code>hc-pkg</code> to hide a package.</p><pre>hc-pkg hide [pkgid] [--user | --global | --package-db]</pre></div></div><div class="top"><p class="src"><a id="v:dump" class="def">dump</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDB">PackageDB</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> [<a href="Distribution-InstalledPackageInfo.html#t:InstalledPackageInfo">InstalledPackageInfo</a>] <a href="src/Distribution-Simple-Program-HcPkg.html#dump" class="link">Source</a> <a href="#v:dump" class="selflink">#</a></p><div class="doc"><p>Call <code>hc-pkg</code> to get all the details of all the packages in the given
package database.</p></div></div><div class="top"><p class="src"><a id="v:describe" class="def">describe</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDBStack">PackageDBStack</a> -> <a href="Distribution-Package.html#t:PackageId">PackageId</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> [<a href="Distribution-InstalledPackageInfo.html#t:InstalledPackageInfo">InstalledPackageInfo</a>] <a href="src/Distribution-Simple-Program-HcPkg.html#describe" class="link">Source</a> <a href="#v:describe" class="selflink">#</a></p><div class="doc"><p>Call <code>hc-pkg</code> to retrieve a specific package</p><pre>hc-pkg describe [pkgid] [--user | --global | --package-db]</pre></div></div><div class="top"><p class="src"><a id="v:list" class="def">list</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDB">PackageDB</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> [<a href="Distribution-Package.html#t:PackageId">PackageId</a>] <a href="src/Distribution-Simple-Program-HcPkg.html#list" class="link">Source</a> <a href="#v:list" class="selflink">#</a></p><div class="doc"><p>Call <code>hc-pkg</code> to get the source package Id of all the packages in the
given package database.</p><p>This is much less information than with <code><a href="Distribution-Simple-Program-HcPkg.html#v:dump">dump</a></code>, but also rather quicker.
Note in particular that it does not include the <code><a href="Distribution-Package.html#t:UnitId">UnitId</a></code>, just
the source <code><a href="Distribution-Package.html#t:PackageId">PackageId</a></code> which is not necessarily unique in any package db.</p></div></div><h1 id="g:1">Program invocations</h1><div class="top"><p class="src"><a id="v:initInvocation" class="def">initInvocation</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</a> -> <a href="Distribution-Simple-Program-Run.html#t:ProgramInvocation">ProgramInvocation</a> <a href="src/Distribution-Simple-Program-HcPkg.html#initInvocation" class="link">Source</a> <a href="#v:initInvocation" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:registerInvocation" class="def">registerInvocation</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDBStack">PackageDBStack</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</a> <a href="Distribution-InstalledPackageInfo.html#t:InstalledPackageInfo">InstalledPackageInfo</a> -> <a href="Distribution-Simple-Program-Run.html#t:ProgramInvocation">ProgramInvocation</a> <a href="src/Distribution-Simple-Program-HcPkg.html#registerInvocation" class="link">Source</a> <a href="#v:registerInvocation" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:reregisterInvocation" class="def">reregisterInvocation</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDBStack">PackageDBStack</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</a> <a href="Distribution-InstalledPackageInfo.html#t:InstalledPackageInfo">InstalledPackageInfo</a> -> <a href="Distribution-Simple-Program-Run.html#t:ProgramInvocation">ProgramInvocation</a> <a href="src/Distribution-Simple-Program-HcPkg.html#reregisterInvocation" class="link">Source</a> <a href="#v:reregisterInvocation" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:registerMultiInstanceInvocation" class="def">registerMultiInstanceInvocation</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDBStack">PackageDBStack</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</a> <a href="Distribution-InstalledPackageInfo.html#t:InstalledPackageInfo">InstalledPackageInfo</a> -> <a href="Distribution-Simple-Program-Run.html#t:ProgramInvocation">ProgramInvocation</a> <a href="src/Distribution-Simple-Program-HcPkg.html#registerMultiInstanceInvocation" class="link">Source</a> <a href="#v:registerMultiInstanceInvocation" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:unregisterInvocation" class="def">unregisterInvocation</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDB">PackageDB</a> -> <a href="Distribution-Package.html#t:PackageId">PackageId</a> -> <a href="Distribution-Simple-Program-Run.html#t:ProgramInvocation">ProgramInvocation</a> <a href="src/Distribution-Simple-Program-HcPkg.html#unregisterInvocation" class="link">Source</a> <a href="#v:unregisterInvocation" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:recacheInvocation" class="def">recacheInvocation</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDB">PackageDB</a> -> <a href="Distribution-Simple-Program-Run.html#t:ProgramInvocation">ProgramInvocation</a> <a href="src/Distribution-Simple-Program-HcPkg.html#recacheInvocation" class="link">Source</a> <a href="#v:recacheInvocation" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:exposeInvocation" class="def">exposeInvocation</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDB">PackageDB</a> -> <a href="Distribution-Package.html#t:PackageId">PackageId</a> -> <a href="Distribution-Simple-Program-Run.html#t:ProgramInvocation">ProgramInvocation</a> <a href="src/Distribution-Simple-Program-HcPkg.html#exposeInvocation" class="link">Source</a> <a href="#v:exposeInvocation" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:hideInvocation" class="def">hideInvocation</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDB">PackageDB</a> -> <a href="Distribution-Package.html#t:PackageId">PackageId</a> -> <a href="Distribution-Simple-Program-Run.html#t:ProgramInvocation">ProgramInvocation</a> <a href="src/Distribution-Simple-Program-HcPkg.html#hideInvocation" class="link">Source</a> <a href="#v:hideInvocation" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:dumpInvocation" class="def">dumpInvocation</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDB">PackageDB</a> -> <a href="Distribution-Simple-Program-Run.html#t:ProgramInvocation">ProgramInvocation</a> <a href="src/Distribution-Simple-Program-HcPkg.html#dumpInvocation" class="link">Source</a> <a href="#v:dumpInvocation" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:describeInvocation" class="def">describeInvocation</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDBStack">PackageDBStack</a> -> <a href="Distribution-Package.html#t:PackageId">PackageId</a> -> <a href="Distribution-Simple-Program-Run.html#t:ProgramInvocation">ProgramInvocation</a> <a href="src/Distribution-Simple-Program-HcPkg.html#describeInvocation" class="link">Source</a> <a href="#v:describeInvocation" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:listInvocation" class="def">listInvocation</a> :: <a href="Distribution-Simple-Program-HcPkg.html#t:HcPkgInfo">HcPkgInfo</a> -> <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -> <a href="Distribution-Simple-Compiler.html#t:PackageDB">PackageDB</a> -> <a href="Distribution-Simple-Program-Run.html#t:ProgramInvocation">ProgramInvocation</a> <a href="src/Distribution-Simple-Program-HcPkg.html#listInvocation" class="link">Source</a> <a href="#v:listInvocation" class="selflink">#</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.2</p></div></body></html>
|