packages feed

Cabal-2.0.1.1: doc/API/Cabal/Distribution-Simple-Program.html

<!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</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">Cabal-2.0.1.1: A framework for packaging Haskell software</p></div><div id="content"><div id="module-header"><table class="info"><tr><th valign="top">Copyright</th><td>Isaac Jones 2006 Duncan Coutts 2007-2009</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>Haskell2010</td></tr></table><p class="caption">Distribution.Simple.Program</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Program and functions for constructing them</a></li><li><a href="#g:2">Configured program and related functions</a></li><li><a href="#g:3">Program invocations</a></li><li><a href="#g:4">The collection of unconfigured and configured programs</a></li><li><a href="#g:5">The collection of configured programs we can run</a></li><li><a href="#g:6">Programs that Cabal knows about</a></li><li><a href="#g:7">deprecated</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This provides an abstraction which deals with configuring and running
 programs. A <code><a href="Distribution-Simple-Program.html#t:Program">Program</a></code> is a static notion of a known program. A
 <code><a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a></code> is a <code><a href="Distribution-Simple-Program.html#t:Program">Program</a></code> that has been found on the current
 machine and is ready to be run (possibly with some user-supplied default
 args). Configuring a program involves finding its location and if necessary
 finding its version. There is also a <code><a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></code> type which holds
 configured and not-yet configured programs. It is the parameter to lots of
 actions elsewhere in Cabal that need to look up and run programs. If we had
 a Cabal monad, the <code><a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></code> would probably be a reader or
 state component of it.</p><p>The module also defines all the known built-in <code><a href="Distribution-Simple-Program.html#t:Program">Program</a></code>s and the
 <code><a href="Distribution-Simple-Program.html#v:defaultProgramDb">defaultProgramDb</a></code> which contains them all.</p><p>One nice thing about using it is that any program that is
 registered with Cabal will get some &quot;configure&quot; and &quot;.cabal&quot;
 helpers like --with-foo-args --foo-path= and extra-foo-args.</p><p>There's also good default behavior for trying to find &quot;foo&quot; in
 PATH, being able to override its location, etc.</p><p>There's also a hook for adding programs in a Setup.lhs script.  See
 hookedPrograms in <code><a href="Distribution-Simple.html#v:UserHooks">UserHooks</a></code>.  This gives a
 hook user the ability to get the above flags and such so that they
 don't have to write all the PATH logic inside Setup.lhs.</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:Program">Program</a> = <a href="#v:Program">Program</a> {<ul class="subs"><li><a href="#v:programName">programName</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a></li><li><a href="#v:programFindLocation">programFindLocation</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramSearchPath">ProgramSearchPath</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a>, [<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a>]))</li><li><a href="#v:programFindVersion">programFindVersion</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Distribution-Version.html#t:Version">Version</a>)</li><li><a href="#v:programPostConf">programPostConf</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a></li></ul>}</li><li class="src short"><span class="keyword">type</span> <a href="#t:ProgramSearchPath">ProgramSearchPath</a> = [<a href="Distribution-Simple-Program.html#t:ProgramSearchPathEntry">ProgramSearchPathEntry</a>]</li><li class="src short"><span class="keyword">data</span> <a href="#t:ProgramSearchPathEntry">ProgramSearchPathEntry</a><ul class="subs"><li>= <a href="#v:ProgramSearchPathDir">ProgramSearchPathDir</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a></li><li>| <a href="#v:ProgramSearchPathDefault">ProgramSearchPathDefault</a></li></ul></li><li class="src short"><a href="#v:simpleProgram">simpleProgram</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a> -&gt; <a href="Distribution-Simple-Program.html#t:Program">Program</a></li><li class="src short"><a href="#v:findProgramOnSearchPath">findProgramOnSearchPath</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramSearchPath">ProgramSearchPath</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a>, [<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a>]))</li><li class="src short"><a href="#v:defaultProgramSearchPath">defaultProgramSearchPath</a> :: <a href="Distribution-Simple-Program.html#t:ProgramSearchPath">ProgramSearchPath</a></li><li class="src short"><a href="#v:findProgramVersion">findProgramVersion</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a> -&gt; (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>) -&gt; <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Distribution-Version.html#t:Version">Version</a>)</li><li class="src short"><span class="keyword">data</span> <a href="#t:ConfiguredProgram">ConfiguredProgram</a> = <a href="#v:ConfiguredProgram">ConfiguredProgram</a> {<ul class="subs"><li><a href="#v:programId">programId</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a></li><li><a href="#v:programVersion">programVersion</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Distribution-Version.html#t:Version">Version</a></li><li><a href="#v:programDefaultArgs">programDefaultArgs</a> :: [<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>]</li><li><a href="#v:programOverrideArgs">programOverrideArgs</a> :: [<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>]</li><li><a href="#v:programOverrideEnv">programOverrideEnv</a> :: [(<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>, <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>)]</li><li><a href="#v:programProperties">programProperties</a> :: <a href="Distribution-Compat-Prelude-Internal.html#t:Map">Map</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a></li><li><a href="#v:programLocation">programLocation</a> :: <a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a></li><li><a href="#v:programMonitorFiles">programMonitorFiles</a> :: [<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a>]</li></ul>}</li><li class="src short"><a href="#v:programPath">programPath</a> :: <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:ProgArg">ProgArg</a> = <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:ProgramLocation">ProgramLocation</a><ul class="subs"><li>= <a href="#v:UserSpecified">UserSpecified</a> { <ul class="subs"><li><a href="#v:locationPath">locationPath</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a></li></ul> }</li><li>| <a href="#v:FoundOnSystem">FoundOnSystem</a> { <ul class="subs"><li><a href="#v:locationPath">locationPath</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a></li></ul> }</li></ul></li><li class="src short"><a href="#v:runProgram">runProgram</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> -&gt; [<a href="Distribution-Simple-Program.html#t:ProgArg">ProgArg</a>] -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:getProgramOutput">getProgramOutput</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> -&gt; [<a href="Distribution-Simple-Program.html#t:ProgArg">ProgArg</a>] -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:suppressOverrideArgs">suppressOverrideArgs</a> :: <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> -&gt; <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:ProgramInvocation">ProgramInvocation</a> = <a href="#v:ProgramInvocation">ProgramInvocation</a> {<ul class="subs"><li><a href="#v:progInvokePath">progInvokePath</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a></li><li><a href="#v:progInvokeArgs">progInvokeArgs</a> :: [<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>]</li><li><a href="#v:progInvokeEnv">progInvokeEnv</a> :: [(<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>, <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>)]</li><li><a href="#v:progInvokePathEnv">progInvokePathEnv</a> :: [<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a>]</li><li><a href="#v:progInvokeCwd">progInvokeCwd</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a></li><li><a href="#v:progInvokeInput">progInvokeInput</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a></li><li><a href="#v:progInvokeInputEncoding">progInvokeInputEncoding</a> :: <a href="Distribution-Simple-Program-Run.html#t:IOEncoding">IOEncoding</a></li><li><a href="#v:progInvokeOutputEncoding">progInvokeOutputEncoding</a> :: <a href="Distribution-Simple-Program-Run.html#t:IOEncoding">IOEncoding</a></li></ul>}</li><li class="src short"><a href="#v:emptyProgramInvocation">emptyProgramInvocation</a> :: <a href="Distribution-Simple-Program.html#t:ProgramInvocation">ProgramInvocation</a></li><li class="src short"><a href="#v:simpleProgramInvocation">simpleProgramInvocation</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; [<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>] -&gt; <a href="Distribution-Simple-Program.html#t:ProgramInvocation">ProgramInvocation</a></li><li class="src short"><a href="#v:programInvocation">programInvocation</a> :: <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> -&gt; [<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>] -&gt; <a href="Distribution-Simple-Program.html#t:ProgramInvocation">ProgramInvocation</a></li><li class="src short"><a href="#v:runProgramInvocation">runProgramInvocation</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramInvocation">ProgramInvocation</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:getProgramInvocationOutput">getProgramInvocationOutput</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramInvocation">ProgramInvocation</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:builtinPrograms">builtinPrograms</a> :: [<a href="Distribution-Simple-Program.html#t:Program">Program</a>]</li><li class="src short"><span class="keyword">data</span> <a href="#t:ProgramDb">ProgramDb</a></li><li class="src short"><a href="#v:defaultProgramDb">defaultProgramDb</a> :: <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></li><li class="src short"><a href="#v:emptyProgramDb">emptyProgramDb</a> :: <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></li><li class="src short"><a href="#v:restoreProgramDb">restoreProgramDb</a> :: [<a href="Distribution-Simple-Program.html#t:Program">Program</a>] -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></li><li class="src short"><a href="#v:addKnownProgram">addKnownProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></li><li class="src short"><a href="#v:addKnownPrograms">addKnownPrograms</a> :: [<a href="Distribution-Simple-Program.html#t:Program">Program</a>] -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></li><li class="src short"><a href="#v:lookupKnownProgram">lookupKnownProgram</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Distribution-Simple-Program.html#t:Program">Program</a></li><li class="src short"><a href="#v:knownPrograms">knownPrograms</a> :: <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; [(<a href="Distribution-Simple-Program.html#t:Program">Program</a>, <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a>)]</li><li class="src short"><a href="#v:getProgramSearchPath">getProgramSearchPath</a> :: <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramSearchPath">ProgramSearchPath</a></li><li class="src short"><a href="#v:setProgramSearchPath">setProgramSearchPath</a> :: <a href="Distribution-Simple-Program.html#t:ProgramSearchPath">ProgramSearchPath</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></li><li class="src short"><a href="#v:userSpecifyPath">userSpecifyPath</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></li><li class="src short"><a href="#v:userSpecifyPaths">userSpecifyPaths</a> :: [(<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>, <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a>)] -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></li><li class="src short"><a href="#v:userMaybeSpecifyPath">userMaybeSpecifyPath</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></li><li class="src short"><a href="#v:userSpecifyArgs">userSpecifyArgs</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a> -&gt; [<a href="Distribution-Simple-Program.html#t:ProgArg">ProgArg</a>] -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></li><li class="src short"><a href="#v:userSpecifyArgss">userSpecifyArgss</a> :: [(<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>, [<a href="Distribution-Simple-Program.html#t:ProgArg">ProgArg</a>])] -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></li><li class="src short"><a href="#v:userSpecifiedArgs">userSpecifiedArgs</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; [<a href="Distribution-Simple-Program.html#t:ProgArg">ProgArg</a>]</li><li class="src short"><a href="#v:lookupProgram">lookupProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a></li><li class="src short"><a href="#v:lookupProgramVersion">lookupProgramVersion</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:Program">Program</a> -&gt; <a href="Distribution-Version.html#t:VersionRange">VersionRange</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Either.html#t:Either">Either</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a> (<a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a>, <a href="Distribution-Version.html#t:Version">Version</a>, <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a>))</li><li class="src short"><a href="#v:updateProgram">updateProgram</a> :: <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></li><li class="src short"><a href="#v:configureProgram">configureProgram</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:Program">Program</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></li><li class="src short"><a href="#v:configureAllKnownPrograms">configureAllKnownPrograms</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></li><li class="src short"><a href="#v:reconfigurePrograms">reconfigurePrograms</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; [(<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>, <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a>)] -&gt; [(<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>, [<a href="Distribution-Simple-Program.html#t:ProgArg">ProgArg</a>])] -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></li><li class="src short"><a href="#v:requireProgram">requireProgram</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:Program">Program</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> (<a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a>, <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a>)</li><li class="src short"><a href="#v:requireProgramVersion">requireProgramVersion</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:Program">Program</a> -&gt; <a href="Distribution-Version.html#t:VersionRange">VersionRange</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> (<a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a>, <a href="Distribution-Version.html#t:Version">Version</a>, <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a>)</li><li class="src short"><a href="#v:runDbProgram">runDbProgram</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:Program">Program</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; [<a href="Distribution-Simple-Program.html#t:ProgArg">ProgArg</a>] -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:getDbProgramOutput">getDbProgramOutput</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:Program">Program</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; [<a href="Distribution-Simple-Program.html#t:ProgArg">ProgArg</a>] -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:ghcProgram">ghcProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a></li><li class="src short"><a href="#v:ghcPkgProgram">ghcPkgProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a></li><li class="src short"><a href="#v:ghcjsProgram">ghcjsProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a></li><li class="src short"><a href="#v:ghcjsPkgProgram">ghcjsPkgProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a></li><li class="src short"><a href="#v:lhcProgram">lhcProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a></li><li class="src short"><a href="#v:lhcPkgProgram">lhcPkgProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a></li><li class="src short"><a href="#v:hmakeProgram">hmakeProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a></li><li class="src short"><a href="#v:jhcProgram">jhcProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a></li><li class="src short"><a href="#v:uhcProgram">uhcProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a></li><li class="src short"><a href="#v:gccProgram">gccProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a></li><li class="src short"><a href="#v:arProgram">arProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a></li><li class="src short"><a href="#v:stripProgram">stripProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a></li><li class="src short"><a href="#v:happyProgram">happyProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a></li><li class="src short"><a href="#v:alexProgram">alexProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a></li><li class="src short"><a href="#v:hsc2hsProgram">hsc2hsProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a></li><li class="src short"><a href="#v:c2hsProgram">c2hsProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a></li><li class="src short"><a href="#v:cpphsProgram">cpphsProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a></li><li class="src short"><a href="#v:hscolourProgram">hscolourProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a></li><li class="src short"><a href="#v:doctestProgram">doctestProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a></li><li class="src short"><a href="#v:haddockProgram">haddockProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a></li><li class="src short"><a href="#v:greencardProgram">greencardProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a></li><li class="src short"><a href="#v:ldProgram">ldProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a></li><li class="src short"><a href="#v:tarProgram">tarProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a></li><li class="src short"><a href="#v:cppProgram">cppProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a></li><li class="src short"><a href="#v:pkgConfigProgram">pkgConfigProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a></li><li class="src short"><a href="#v:hpcProgram">hpcProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:ProgramConfiguration">ProgramConfiguration</a> = <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></li><li class="src short"><a href="#v:emptyProgramConfiguration">emptyProgramConfiguration</a> :: <a href="Distribution-Simple-Program.html#t:ProgramConfiguration">ProgramConfiguration</a></li><li class="src short"><a href="#v:defaultProgramConfiguration">defaultProgramConfiguration</a> :: <a href="Distribution-Simple-Program.html#t:ProgramConfiguration">ProgramConfiguration</a></li><li class="src short"><a href="#v:restoreProgramConfiguration">restoreProgramConfiguration</a> :: [<a href="Distribution-Simple-Program.html#t:Program">Program</a>] -&gt; <a href="Distribution-Simple-Program.html#t:ProgramConfiguration">ProgramConfiguration</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramConfiguration">ProgramConfiguration</a></li><li class="src short"><a href="#v:rawSystemProgram">rawSystemProgram</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> -&gt; [<a href="Distribution-Simple-Program.html#t:ProgArg">ProgArg</a>] -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:rawSystemProgramStdout">rawSystemProgramStdout</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> -&gt; [<a href="Distribution-Simple-Program.html#t:ProgArg">ProgArg</a>] -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:rawSystemProgramConf">rawSystemProgramConf</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:Program">Program</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramConfiguration">ProgramConfiguration</a> -&gt; [<a href="Distribution-Simple-Program.html#t:ProgArg">ProgArg</a>] -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:rawSystemProgramStdoutConf">rawSystemProgramStdoutConf</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:Program">Program</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramConfiguration">ProgramConfiguration</a> -&gt; [<a href="Distribution-Simple-Program.html#t:ProgArg">ProgArg</a>] -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:findProgramOnPath">findProgramOnPath</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a> -&gt; <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a>)</li><li class="src short"><a href="#v:findProgramLocation">findProgramLocation</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a>)</li></ul></div><div id="interface"><h1 id="g:1">Program and functions for constructing them</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Program" class="def">Program</a> <a href="#t:Program" class="selflink">#</a></p><div class="doc"><p>Represents a program which can be configured.</p><p>Note: rather than constructing this directly, start with <code><a href="Distribution-Simple-Program.html#v:simpleProgram">simpleProgram</a></code> and
 override any extra fields.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Program" class="def">Program</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:programName" class="def">programName</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a></dfn><div class="doc"><p>The simple name of the program, eg. ghc</p></div></li><li><dfn class="src"><a id="v:programFindLocation" class="def">programFindLocation</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramSearchPath">ProgramSearchPath</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a>, [<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a>]))</dfn><div class="doc"><p>A function to search for the program if its location was not
 specified by the user. Usually this will just be a call to
 <code><a href="Distribution-Simple-Program.html#v:findProgramOnSearchPath">findProgramOnSearchPath</a></code>.</p><p>It is supplied with the prevailing search path which will typically
 just be used as-is, but can be extended or ignored as needed.</p><p>For the purpose of change monitoring, in addition to the location
 where the program was found, it returns all the other places that
 were tried.</p></div></li><li><dfn class="src"><a id="v:programFindVersion" class="def">programFindVersion</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Distribution-Version.html#t:Version">Version</a>)</dfn><div class="doc"><p>Try to find the version of the program. For many programs this is
 not possible or is not necessary so it's OK to return Nothing.</p></div></li><li><dfn class="src"><a id="v:programPostConf" class="def">programPostConf</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a></dfn><div class="doc"><p>A function to do any additional configuration after we have
 located the program (and perhaps identified its version). For example
 it could add args, or environment vars.</p></div></li></ul></div></td></tr></table></div><div class="subs instances"><p id="control.i:Program" class="caption collapser" onclick="toggleSection('i:Program')">Instances</p><div id="section.i:Program" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Program:Show:1" class="instance expander" onclick="toggleSection('i:id:Program:Show:1')"></span> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Text-Show.html#t:Show">Show</a> <a href="Distribution-Simple-Program.html#t:Program">Program</a></span> <a href="#t:Program" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Program:Show:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Distribution-Simple-Program.html#t:Program">Program</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Distribution-Simple-Program.html#t:Program">Program</a>] -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:ProgramSearchPath" class="def">ProgramSearchPath</a> = [<a href="Distribution-Simple-Program.html#t:ProgramSearchPathEntry">ProgramSearchPathEntry</a>] <a href="#t:ProgramSearchPath" class="selflink">#</a></p><div class="doc"><p>A search path to use when locating executables. This is analogous
 to the unix <code>$PATH</code> or win32 <code>%PATH%</code> but with the ability to use
 the system default method for finding executables (<code>findExecutable</code> which
 on unix is simply looking on the <code>$PATH</code> but on win32 is a bit more
 complicated).</p><p>The default to use is <code>[ProgSearchPathDefault]</code> but you can add extra dirs
 either before, after or instead of the default, e.g. here we add an extra
 dir to search after the usual ones.</p><pre>['ProgramSearchPathDefault', 'ProgramSearchPathDir' dir]</pre></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:ProgramSearchPathEntry" class="def">ProgramSearchPathEntry</a> <a href="#t:ProgramSearchPathEntry" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:ProgramSearchPathDir" class="def">ProgramSearchPathDir</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a></td><td class="doc"><p>A specific dir</p></td></tr><tr><td class="src"><a id="v:ProgramSearchPathDefault" class="def">ProgramSearchPathDefault</a></td><td class="doc"><p>The system default</p></td></tr></table></div><div class="subs instances"><p id="control.i:ProgramSearchPathEntry" class="caption collapser" onclick="toggleSection('i:ProgramSearchPathEntry')">Instances</p><div id="section.i:ProgramSearchPathEntry" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ProgramSearchPathEntry:Eq:1" class="instance expander" onclick="toggleSection('i:id:ProgramSearchPathEntry:Eq:1')"></span> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="Distribution-Simple-Program.html#t:ProgramSearchPathEntry">ProgramSearchPathEntry</a></span> <a href="#t:ProgramSearchPathEntry" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ProgramSearchPathEntry:Eq:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Distribution-Simple-Program.html#t:ProgramSearchPathEntry">ProgramSearchPathEntry</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramSearchPathEntry">ProgramSearchPathEntry</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Distribution-Simple-Program.html#t:ProgramSearchPathEntry">ProgramSearchPathEntry</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramSearchPathEntry">ProgramSearchPathEntry</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ProgramSearchPathEntry:Generic:2" class="instance expander" onclick="toggleSection('i:id:ProgramSearchPathEntry:Generic:2')"></span> <a href="Distribution-Compat-Prelude-Internal.html#t:Generic">Generic</a> <a href="Distribution-Simple-Program.html#t:ProgramSearchPathEntry">ProgramSearchPathEntry</a></span> <a href="#t:ProgramSearchPathEntry" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ProgramSearchPathEntry:Generic:2" class="inst-details hide"><div class="subs associated-types"><p class="caption">Associated Types</p><p class="src"><span class="keyword">type</span> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Distribution-Simple-Program.html#t:ProgramSearchPathEntry">ProgramSearchPathEntry</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="#t:Rep" class="selflink">#</a></p></div> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:from">from</a> :: <a href="Distribution-Simple-Program.html#t:ProgramSearchPathEntry">ProgramSearchPathEntry</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Distribution-Simple-Program.html#t:ProgramSearchPathEntry">ProgramSearchPathEntry</a> x <a href="#v:from" class="selflink">#</a></p><p class="src"><a href="#v:to">to</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Distribution-Simple-Program.html#t:ProgramSearchPathEntry">ProgramSearchPathEntry</a> x -&gt; <a href="Distribution-Simple-Program.html#t:ProgramSearchPathEntry">ProgramSearchPathEntry</a> <a href="#v:to" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ProgramSearchPathEntry:Binary:3" class="instance expander" onclick="toggleSection('i:id:ProgramSearchPathEntry:Binary:3')"></span> <a href="Distribution-Compat-Prelude-Internal.html#t:Binary">Binary</a> <a href="Distribution-Simple-Program.html#t:ProgramSearchPathEntry">ProgramSearchPathEntry</a></span> <a href="#t:ProgramSearchPathEntry" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ProgramSearchPathEntry:Binary:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:put">put</a> :: <a href="Distribution-Simple-Program.html#t:ProgramSearchPathEntry">ProgramSearchPathEntry</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/binary-0.8.5.1/Data-Binary-Put.html#t:Put">Put</a> <a href="#v:put" class="selflink">#</a></p><p class="src"><a href="#v:get">get</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/binary-0.8.5.1/Data-Binary-Get-Internal.html#t:Get">Get</a> <a href="Distribution-Simple-Program.html#t:ProgramSearchPathEntry">ProgramSearchPathEntry</a> <a href="#v:get" class="selflink">#</a></p><p class="src"><a href="#v:putList">putList</a> :: [<a href="Distribution-Simple-Program.html#t:ProgramSearchPathEntry">ProgramSearchPathEntry</a>] -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/binary-0.8.5.1/Data-Binary-Put.html#t:Put">Put</a> <a href="#v:putList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ProgramSearchPathEntry:Rep:4" class="instance expander" onclick="toggleSection('i:id:ProgramSearchPathEntry:Rep:4')"></span> <span class="keyword">type</span> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Distribution-Simple-Program.html#t:ProgramSearchPathEntry">ProgramSearchPathEntry</a></span> <a href="#t:ProgramSearchPathEntry" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ProgramSearchPathEntry:Rep:4" class="inst-details hide"><div class="src"><span class="keyword">type</span> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Distribution-Simple-Program.html#t:ProgramSearchPathEntry">ProgramSearchPathEntry</a> = <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:D1">D1</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:MetaData">MetaData</a> &quot;ProgramSearchPathEntry&quot; &quot;Distribution.Simple.Program.Find&quot; &quot;Cabal-2.0.1.1-ARIl7MGNKZFBAH1HVzpC6s&quot; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Bool.html#v:False">False</a>) (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t::-43-:">(:+:)</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:C1">C1</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:MetaCons">MetaCons</a> &quot;ProgramSearchPathDir&quot; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:PrefixI">PrefixI</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Bool.html#v:False">False</a>) (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:S1">S1</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:MetaSel">MetaSel</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#v:Nothing">Nothing</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-TypeLits.html#t:Symbol">Symbol</a>) <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:NoSourceUnpackedness">NoSourceUnpackedness</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:NoSourceStrictness">NoSourceStrictness</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:DecidedLazy">DecidedLazy</a>) (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a>))) (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:C1">C1</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:MetaCons">MetaCons</a> &quot;ProgramSearchPathDefault&quot; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:PrefixI">PrefixI</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Bool.html#v:False">False</a>) (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:U1">U1</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a>)))</div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:simpleProgram" class="def">simpleProgram</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a> -&gt; <a href="Distribution-Simple-Program.html#t:Program">Program</a> <a href="#v:simpleProgram" class="selflink">#</a></p><div class="doc"><p>Make a simple named program.</p><p>By default we'll just search for it in the path and not try to find the
 version name. You can override these behaviours if necessary, eg:</p><pre>(simpleProgram &quot;foo&quot;) { programFindLocation = ... , programFindVersion ... }</pre></div></div><div class="top"><p class="src"><a id="v:findProgramOnSearchPath" class="def">findProgramOnSearchPath</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramSearchPath">ProgramSearchPath</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a>, [<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a>])) <a href="#v:findProgramOnSearchPath" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:defaultProgramSearchPath" class="def">defaultProgramSearchPath</a> :: <a href="Distribution-Simple-Program.html#t:ProgramSearchPath">ProgramSearchPath</a> <a href="#v:defaultProgramSearchPath" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:findProgramVersion" class="def">findProgramVersion</a> <a href="#v:findProgramVersion" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a></td><td class="doc"><p>version args</p></td></tr><tr><td class="src">-&gt; (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>)</td><td class="doc"><p>function to select version
   number from program output</p></td></tr><tr><td class="src">-&gt; <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a></td><td class="doc"><p>location</p></td></tr><tr><td class="src">-&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Distribution-Version.html#t:Version">Version</a>)</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Look for a program and try to find it's version number. It can accept
 either an absolute path or the name of a program binary, in which case we
 will look for the program on the path.</p></div></div><h1 id="g:2">Configured program and related functions</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:ConfiguredProgram" class="def">ConfiguredProgram</a> <a href="#t:ConfiguredProgram" class="selflink">#</a></p><div class="doc"><p>Represents a program which has been configured and is thus ready to be run.</p><p>These are usually made by configuring a <code><a href="Distribution-Simple-Program.html#t:Program">Program</a></code>, but if you have to
 construct one directly then start with <code><a href="Distribution-Simple-Program-Types.html#v:simpleConfiguredProgram">simpleConfiguredProgram</a></code> and
 override any extra fields.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:ConfiguredProgram" class="def">ConfiguredProgram</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:programId" class="def">programId</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a></dfn><div class="doc"><p>Just the name again</p></div></li><li><dfn class="src"><a id="v:programVersion" class="def">programVersion</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Distribution-Version.html#t:Version">Version</a></dfn><div class="doc"><p>The version of this program, if it is known.</p></div></li><li><dfn class="src"><a id="v:programDefaultArgs" class="def">programDefaultArgs</a> :: [<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>]</dfn><div class="doc"><p>Default command-line args for this program.
 These flags will appear first on the command line, so they can be
 overridden by subsequent flags.</p></div></li><li><dfn class="src"><a id="v:programOverrideArgs" class="def">programOverrideArgs</a> :: [<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>]</dfn><div class="doc"><p>Override command-line args for this program.
 These flags will appear last on the command line, so they override
 all earlier flags.</p></div></li><li><dfn class="src"><a id="v:programOverrideEnv" class="def">programOverrideEnv</a> :: [(<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>, <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>)]</dfn><div class="doc"><p>Override environment variables for this program.
 These env vars will extend/override the prevailing environment of
 the current to form the environment for the new process.</p></div></li><li><dfn class="src"><a id="v:programProperties" class="def">programProperties</a> :: <a href="Distribution-Compat-Prelude-Internal.html#t:Map">Map</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a></dfn><div class="doc"><p>A key-value map listing various properties of the program, useful
 for feature detection. Populated during the configuration step, key
 names depend on the specific program.</p></div></li><li><dfn class="src"><a id="v:programLocation" class="def">programLocation</a> :: <a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a></dfn><div class="doc"><p>Location of the program. eg. <code>/usr/bin/ghc-6.4</code></p></div></li><li><dfn class="src"><a id="v:programMonitorFiles" class="def">programMonitorFiles</a> :: [<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a>]</dfn><div class="doc"><p>In addition to the <code><a href="Distribution-Simple-Program.html#v:programLocation">programLocation</a></code> where the program was found,
 these are additional locations that were looked at. The combination
 of ths found location and these not-found locations can be used to
 monitor to detect when the re-configuring the program might give a
 different result (e.g. found in a different location).</p></div></li></ul></div></td></tr></table></div><div class="subs instances"><p id="control.i:ConfiguredProgram" class="caption collapser" onclick="toggleSection('i:ConfiguredProgram')">Instances</p><div id="section.i:ConfiguredProgram" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ConfiguredProgram:Eq:1" class="instance expander" onclick="toggleSection('i:id:ConfiguredProgram:Eq:1')"></span> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a></span> <a href="#t:ConfiguredProgram" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ConfiguredProgram:Eq:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> -&gt; <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> -&gt; <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ConfiguredProgram:Read:2" class="instance expander" onclick="toggleSection('i:id:ConfiguredProgram:Read:2')"></span> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Text-Read.html#t:Read">Read</a> <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a></span> <a href="#t:ConfiguredProgram" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ConfiguredProgram:Read:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:readsPrec">readsPrec</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Distribution-Compat-ReadP.html#t:ReadS">ReadS</a> <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> <a href="#v:readsPrec" class="selflink">#</a></p><p class="src"><a href="#v:readList">readList</a> :: <a href="Distribution-Compat-ReadP.html#t:ReadS">ReadS</a> [<a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a>] <a href="#v:readList" class="selflink">#</a></p><p class="src"><a href="#v:readPrec">readPrec</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> <a href="#v:readPrec" class="selflink">#</a></p><p class="src"><a href="#v:readListPrec">readListPrec</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> [<a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a>] <a href="#v:readListPrec" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ConfiguredProgram:Show:3" class="instance expander" onclick="toggleSection('i:id:ConfiguredProgram:Show:3')"></span> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Text-Show.html#t:Show">Show</a> <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a></span> <a href="#t:ConfiguredProgram" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ConfiguredProgram:Show:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a>] -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ConfiguredProgram:Generic:4" class="instance expander" onclick="toggleSection('i:id:ConfiguredProgram:Generic:4')"></span> <a href="Distribution-Compat-Prelude-Internal.html#t:Generic">Generic</a> <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a></span> <a href="#t:ConfiguredProgram" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ConfiguredProgram:Generic:4" class="inst-details hide"><div class="subs associated-types"><p class="caption">Associated Types</p><p class="src"><span class="keyword">type</span> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="#t:Rep" class="selflink">#</a></p></div> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:from">from</a> :: <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> x <a href="#v:from" class="selflink">#</a></p><p class="src"><a href="#v:to">to</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> x -&gt; <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> <a href="#v:to" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ConfiguredProgram:Binary:5" class="instance expander" onclick="toggleSection('i:id:ConfiguredProgram:Binary:5')"></span> <a href="Distribution-Compat-Prelude-Internal.html#t:Binary">Binary</a> <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a></span> <a href="#t:ConfiguredProgram" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ConfiguredProgram:Binary:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:put">put</a> :: <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/binary-0.8.5.1/Data-Binary-Put.html#t:Put">Put</a> <a href="#v:put" class="selflink">#</a></p><p class="src"><a href="#v:get">get</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/binary-0.8.5.1/Data-Binary-Get-Internal.html#t:Get">Get</a> <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> <a href="#v:get" class="selflink">#</a></p><p class="src"><a href="#v:putList">putList</a> :: [<a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a>] -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/binary-0.8.5.1/Data-Binary-Put.html#t:Put">Put</a> <a href="#v:putList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ConfiguredProgram:Rep:6" class="instance expander" onclick="toggleSection('i:id:ConfiguredProgram:Rep:6')"></span> <span class="keyword">type</span> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a></span> <a href="#t:ConfiguredProgram" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ConfiguredProgram:Rep:6" class="inst-details hide"><div class="src"><span class="keyword">type</span> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> = <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:D1">D1</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:MetaData">MetaData</a> &quot;ConfiguredProgram&quot; &quot;Distribution.Simple.Program.Types&quot; &quot;Cabal-2.0.1.1-ARIl7MGNKZFBAH1HVzpC6s&quot; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Bool.html#v:False">False</a>) (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:C1">C1</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:MetaCons">MetaCons</a> &quot;ConfiguredProgram&quot; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:PrefixI">PrefixI</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Bool.html#v:True">True</a>) (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t::-42-:">(:*:)</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t::-42-:">(:*:)</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t::-42-:">(:*:)</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:S1">S1</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:MetaSel">MetaSel</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#v:Just">Just</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-TypeLits.html#t:Symbol">Symbol</a> &quot;programId&quot;) <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:NoSourceUnpackedness">NoSourceUnpackedness</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:NoSourceStrictness">NoSourceStrictness</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:DecidedLazy">DecidedLazy</a>) (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>)) (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:S1">S1</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:MetaSel">MetaSel</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#v:Just">Just</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-TypeLits.html#t:Symbol">Symbol</a> &quot;programVersion&quot;) <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:NoSourceUnpackedness">NoSourceUnpackedness</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:NoSourceStrictness">NoSourceStrictness</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:DecidedLazy">DecidedLazy</a>) (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Distribution-Version.html#t:Version">Version</a>)))) (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t::-42-:">(:*:)</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:S1">S1</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:MetaSel">MetaSel</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#v:Just">Just</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-TypeLits.html#t:Symbol">Symbol</a> &quot;programDefaultArgs&quot;) <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:NoSourceUnpackedness">NoSourceUnpackedness</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:NoSourceStrictness">NoSourceStrictness</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:DecidedLazy">DecidedLazy</a>) (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> [<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>])) (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:S1">S1</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:MetaSel">MetaSel</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#v:Just">Just</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-TypeLits.html#t:Symbol">Symbol</a> &quot;programOverrideArgs&quot;) <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:NoSourceUnpackedness">NoSourceUnpackedness</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:NoSourceStrictness">NoSourceStrictness</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:DecidedLazy">DecidedLazy</a>) (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> [<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>])))) (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t::-42-:">(:*:)</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t::-42-:">(:*:)</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:S1">S1</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:MetaSel">MetaSel</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#v:Just">Just</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-TypeLits.html#t:Symbol">Symbol</a> &quot;programOverrideEnv&quot;) <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:NoSourceUnpackedness">NoSourceUnpackedness</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:NoSourceStrictness">NoSourceStrictness</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:DecidedLazy">DecidedLazy</a>) (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> [(<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>, <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>)])) (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:S1">S1</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:MetaSel">MetaSel</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#v:Just">Just</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-TypeLits.html#t:Symbol">Symbol</a> &quot;programProperties&quot;) <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:NoSourceUnpackedness">NoSourceUnpackedness</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:NoSourceStrictness">NoSourceStrictness</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:DecidedLazy">DecidedLazy</a>) (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="Distribution-Compat-Prelude-Internal.html#t:Map">Map</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>)))) (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t::-42-:">(:*:)</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:S1">S1</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:MetaSel">MetaSel</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#v:Just">Just</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-TypeLits.html#t:Symbol">Symbol</a> &quot;programLocation&quot;) <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:NoSourceUnpackedness">NoSourceUnpackedness</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:NoSourceStrictness">NoSourceStrictness</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:DecidedLazy">DecidedLazy</a>) (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a>)) (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:S1">S1</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:MetaSel">MetaSel</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#v:Just">Just</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-TypeLits.html#t:Symbol">Symbol</a> &quot;programMonitorFiles&quot;) <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:NoSourceUnpackedness">NoSourceUnpackedness</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:NoSourceStrictness">NoSourceStrictness</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:DecidedLazy">DecidedLazy</a>) (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> [<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a>]))))))</div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:programPath" class="def">programPath</a> :: <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a> <a href="#v:programPath" class="selflink">#</a></p><div class="doc"><p>The full path of a configured program.</p></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:ProgArg" class="def">ProgArg</a> = <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a> <a href="#t:ProgArg" class="selflink">#</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:ProgramLocation" class="def">ProgramLocation</a> <a href="#t:ProgramLocation" class="selflink">#</a></p><div class="doc"><p>Where a program was found. Also tells us whether it's specified by user or
 not.  This includes not just the path, but the program as well.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:UserSpecified" class="def">UserSpecified</a></td><td class="doc"><p>The user gave the path to this program,
 eg. --ghc-path=/usr/bin/ghc-6.6</p></td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:locationPath" class="def">locationPath</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a></dfn><div class="doc empty">&nbsp;</div></li></ul></div></td></tr><tr><td class="src"><a id="v:FoundOnSystem" class="def">FoundOnSystem</a></td><td class="doc"><p>The program was found automatically.</p></td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:locationPath" class="def">locationPath</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a></dfn><div class="doc empty">&nbsp;</div></li></ul></div></td></tr></table></div><div class="subs instances"><p id="control.i:ProgramLocation" class="caption collapser" onclick="toggleSection('i:ProgramLocation')">Instances</p><div id="section.i:ProgramLocation" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ProgramLocation:Eq:1" class="instance expander" onclick="toggleSection('i:id:ProgramLocation:Eq:1')"></span> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a></span> <a href="#t:ProgramLocation" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ProgramLocation:Eq:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ProgramLocation:Read:2" class="instance expander" onclick="toggleSection('i:id:ProgramLocation:Read:2')"></span> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Text-Read.html#t:Read">Read</a> <a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a></span> <a href="#t:ProgramLocation" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ProgramLocation:Read:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:readsPrec">readsPrec</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Distribution-Compat-ReadP.html#t:ReadS">ReadS</a> <a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a> <a href="#v:readsPrec" class="selflink">#</a></p><p class="src"><a href="#v:readList">readList</a> :: <a href="Distribution-Compat-ReadP.html#t:ReadS">ReadS</a> [<a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a>] <a href="#v:readList" class="selflink">#</a></p><p class="src"><a href="#v:readPrec">readPrec</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> <a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a> <a href="#v:readPrec" class="selflink">#</a></p><p class="src"><a href="#v:readListPrec">readListPrec</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> [<a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a>] <a href="#v:readListPrec" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ProgramLocation:Show:3" class="instance expander" onclick="toggleSection('i:id:ProgramLocation:Show:3')"></span> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Text-Show.html#t:Show">Show</a> <a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a></span> <a href="#t:ProgramLocation" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ProgramLocation:Show:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a>] -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ProgramLocation:Generic:4" class="instance expander" onclick="toggleSection('i:id:ProgramLocation:Generic:4')"></span> <a href="Distribution-Compat-Prelude-Internal.html#t:Generic">Generic</a> <a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a></span> <a href="#t:ProgramLocation" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ProgramLocation:Generic:4" class="inst-details hide"><div class="subs associated-types"><p class="caption">Associated Types</p><p class="src"><span class="keyword">type</span> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="#t:Rep" class="selflink">#</a></p></div> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:from">from</a> :: <a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a> x <a href="#v:from" class="selflink">#</a></p><p class="src"><a href="#v:to">to</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a> x -&gt; <a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a> <a href="#v:to" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ProgramLocation:Binary:5" class="instance expander" onclick="toggleSection('i:id:ProgramLocation:Binary:5')"></span> <a href="Distribution-Compat-Prelude-Internal.html#t:Binary">Binary</a> <a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a></span> <a href="#t:ProgramLocation" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ProgramLocation:Binary:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:put">put</a> :: <a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/binary-0.8.5.1/Data-Binary-Put.html#t:Put">Put</a> <a href="#v:put" class="selflink">#</a></p><p class="src"><a href="#v:get">get</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/binary-0.8.5.1/Data-Binary-Get-Internal.html#t:Get">Get</a> <a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a> <a href="#v:get" class="selflink">#</a></p><p class="src"><a href="#v:putList">putList</a> :: [<a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a>] -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/binary-0.8.5.1/Data-Binary-Put.html#t:Put">Put</a> <a href="#v:putList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ProgramLocation:Rep:6" class="instance expander" onclick="toggleSection('i:id:ProgramLocation:Rep:6')"></span> <span class="keyword">type</span> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a></span> <a href="#t:ProgramLocation" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ProgramLocation:Rep:6" class="inst-details hide"><div class="src"><span class="keyword">type</span> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Distribution-Simple-Program.html#t:ProgramLocation">ProgramLocation</a> = <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:D1">D1</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:MetaData">MetaData</a> &quot;ProgramLocation&quot; &quot;Distribution.Simple.Program.Types&quot; &quot;Cabal-2.0.1.1-ARIl7MGNKZFBAH1HVzpC6s&quot; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Bool.html#v:False">False</a>) (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t::-43-:">(:+:)</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:C1">C1</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:MetaCons">MetaCons</a> &quot;UserSpecified&quot; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:PrefixI">PrefixI</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Bool.html#v:True">True</a>) (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:S1">S1</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:MetaSel">MetaSel</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#v:Just">Just</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-TypeLits.html#t:Symbol">Symbol</a> &quot;locationPath&quot;) <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:NoSourceUnpackedness">NoSourceUnpackedness</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:NoSourceStrictness">NoSourceStrictness</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:DecidedLazy">DecidedLazy</a>) (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a>))) (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:C1">C1</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:MetaCons">MetaCons</a> &quot;FoundOnSystem&quot; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:PrefixI">PrefixI</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Bool.html#v:True">True</a>) (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:S1">S1</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:MetaSel">MetaSel</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#v:Just">Just</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-TypeLits.html#t:Symbol">Symbol</a> &quot;locationPath&quot;) <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:NoSourceUnpackedness">NoSourceUnpackedness</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:NoSourceStrictness">NoSourceStrictness</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#v:DecidedLazy">DecidedLazy</a>) (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a>))))</div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:runProgram" class="def">runProgram</a> <a href="#v:runProgram" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a></td><td class="doc"><p>Verbosity</p></td></tr><tr><td class="src">-&gt; <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a></td><td class="doc"><p>The program to run</p></td></tr><tr><td class="src">-&gt; [<a href="Distribution-Simple-Program.html#t:ProgArg">ProgArg</a>]</td><td class="doc"><p>Any <em>extra</em> arguments to add</p></td></tr><tr><td class="src">-&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> ()</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Runs the given configured program.</p></div></div><div class="top"><p class="src"><a id="v:getProgramOutput" class="def">getProgramOutput</a> <a href="#v:getProgramOutput" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a></td><td class="doc"><p>Verbosity</p></td></tr><tr><td class="src">-&gt; <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a></td><td class="doc"><p>The program to run</p></td></tr><tr><td class="src">-&gt; [<a href="Distribution-Simple-Program.html#t:ProgArg">ProgArg</a>]</td><td class="doc"><p>Any <em>extra</em> arguments to add</p></td></tr><tr><td class="src">-&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Runs the given configured program and gets the output.</p></div></div><div class="top"><p class="src"><a id="v:suppressOverrideArgs" class="def">suppressOverrideArgs</a> :: <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> -&gt; <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> <a href="#v:suppressOverrideArgs" class="selflink">#</a></p><div class="doc"><p>Suppress any extra arguments added by the user.</p></div></div><h1 id="g:3">Program invocations</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:ProgramInvocation" class="def">ProgramInvocation</a> <a href="#t:ProgramInvocation" class="selflink">#</a></p><div class="doc"><p>Represents a specific invocation of a specific program.</p><p>This is used as an intermediate type between deciding how to call a program
 and actually doing it. This provides the opportunity to the caller to
 adjust how the program will be called. These invocations can either be run
 directly or turned into shell or batch scripts.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:ProgramInvocation" class="def">ProgramInvocation</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:progInvokePath" class="def">progInvokePath</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:progInvokeArgs" class="def">progInvokeArgs</a> :: [<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>]</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:progInvokeEnv" class="def">progInvokeEnv</a> :: [(<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>, <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>)]</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:progInvokePathEnv" class="def">progInvokePathEnv</a> :: [<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a>]</dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:progInvokeCwd" class="def">progInvokeCwd</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:progInvokeInput" class="def">progInvokeInput</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:progInvokeInputEncoding" class="def">progInvokeInputEncoding</a> :: <a href="Distribution-Simple-Program-Run.html#t:IOEncoding">IOEncoding</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:progInvokeOutputEncoding" class="def">progInvokeOutputEncoding</a> :: <a href="Distribution-Simple-Program-Run.html#t:IOEncoding">IOEncoding</a></dfn><div class="doc empty">&nbsp;</div></li></ul></div></td></tr></table></div></div><div class="top"><p class="src"><a id="v:emptyProgramInvocation" class="def">emptyProgramInvocation</a> :: <a href="Distribution-Simple-Program.html#t:ProgramInvocation">ProgramInvocation</a> <a href="#v:emptyProgramInvocation" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:simpleProgramInvocation" class="def">simpleProgramInvocation</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; [<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>] -&gt; <a href="Distribution-Simple-Program.html#t:ProgramInvocation">ProgramInvocation</a> <a href="#v:simpleProgramInvocation" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:programInvocation" class="def">programInvocation</a> :: <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> -&gt; [<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>] -&gt; <a href="Distribution-Simple-Program.html#t:ProgramInvocation">ProgramInvocation</a> <a href="#v:programInvocation" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:runProgramInvocation" class="def">runProgramInvocation</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramInvocation">ProgramInvocation</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> () <a href="#v:runProgramInvocation" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:getProgramInvocationOutput" class="def">getProgramInvocationOutput</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramInvocation">ProgramInvocation</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a> <a href="#v:getProgramInvocationOutput" class="selflink">#</a></p></div><h1 id="g:4">The collection of unconfigured and configured programs</h1><div class="top"><p class="src"><a id="v:builtinPrograms" class="def">builtinPrograms</a> :: [<a href="Distribution-Simple-Program.html#t:Program">Program</a>] <a href="#v:builtinPrograms" class="selflink">#</a></p><div class="doc"><p>The default list of programs.
 These programs are typically used internally to Cabal.</p></div></div><h1 id="g:5">The collection of configured programs we can run</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:ProgramDb" class="def">ProgramDb</a> <a href="#t:ProgramDb" class="selflink">#</a></p><div class="doc"><p>The configuration is a collection of information about programs. It
 contains information both about configured programs and also about programs
 that we are yet to configure.</p><p>The idea is that we start from a collection of unconfigured programs and one
 by one we try to configure them at which point we move them into the
 configured collection. For unconfigured programs we record not just the
 <code><a href="Distribution-Simple-Program.html#t:Program">Program</a></code> but also any user-provided arguments and location for the program.</p></div><div class="subs instances"><p id="control.i:ProgramDb" class="caption collapser" onclick="toggleSection('i:ProgramDb')">Instances</p><div id="section.i:ProgramDb" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ProgramDb:Read:1" class="instance expander" onclick="toggleSection('i:id:ProgramDb:Read:1')"></span> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Text-Read.html#t:Read">Read</a> <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></span> <a href="#t:ProgramDb" class="selflink">#</a></td><td class="doc"><p>Note that this instance does not preserve the known <code><a href="Distribution-Simple-Program.html#t:Program">Program</a></code>s.
 See <code><a href="Distribution-Simple-Program.html#v:restoreProgramDb">restoreProgramDb</a></code> for details.</p></td></tr><tr><td colspan="2"><div id="section.i:id:ProgramDb:Read:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:readsPrec">readsPrec</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Distribution-Compat-ReadP.html#t:ReadS">ReadS</a> <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> <a href="#v:readsPrec" class="selflink">#</a></p><p class="src"><a href="#v:readList">readList</a> :: <a href="Distribution-Compat-ReadP.html#t:ReadS">ReadS</a> [<a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a>] <a href="#v:readList" class="selflink">#</a></p><p class="src"><a href="#v:readPrec">readPrec</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> <a href="#v:readPrec" class="selflink">#</a></p><p class="src"><a href="#v:readListPrec">readListPrec</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> [<a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a>] <a href="#v:readListPrec" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ProgramDb:Show:2" class="instance expander" onclick="toggleSection('i:id:ProgramDb:Show:2')"></span> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Text-Show.html#t:Show">Show</a> <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></span> <a href="#t:ProgramDb" class="selflink">#</a></td><td class="doc"><p>Note that this instance does not preserve the known <code><a href="Distribution-Simple-Program.html#t:Program">Program</a></code>s.
 See <code><a href="Distribution-Simple-Program.html#v:restoreProgramDb">restoreProgramDb</a></code> for details.</p></td></tr><tr><td colspan="2"><div id="section.i:id:ProgramDb:Show:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a>] -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ProgramDb:Binary:3" class="instance expander" onclick="toggleSection('i:id:ProgramDb:Binary:3')"></span> <a href="Distribution-Compat-Prelude-Internal.html#t:Binary">Binary</a> <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></span> <a href="#t:ProgramDb" class="selflink">#</a></td><td class="doc"><p>Note that this instance does not preserve the known <code><a href="Distribution-Simple-Program.html#t:Program">Program</a></code>s.
 See <code><a href="Distribution-Simple-Program.html#v:restoreProgramDb">restoreProgramDb</a></code> for details.</p></td></tr><tr><td colspan="2"><div id="section.i:id:ProgramDb:Binary:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:put">put</a> :: <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/binary-0.8.5.1/Data-Binary-Put.html#t:Put">Put</a> <a href="#v:put" class="selflink">#</a></p><p class="src"><a href="#v:get">get</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/binary-0.8.5.1/Data-Binary-Get-Internal.html#t:Get">Get</a> <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> <a href="#v:get" class="selflink">#</a></p><p class="src"><a href="#v:putList">putList</a> :: [<a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a>] -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/binary-0.8.5.1/Data-Binary-Put.html#t:Put">Put</a> <a href="#v:putList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:defaultProgramDb" class="def">defaultProgramDb</a> :: <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> <a href="#v:defaultProgramDb" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:emptyProgramDb" class="def">emptyProgramDb</a> :: <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> <a href="#v:emptyProgramDb" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:restoreProgramDb" class="def">restoreProgramDb</a> :: [<a href="Distribution-Simple-Program.html#t:Program">Program</a>] -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> <a href="#v:restoreProgramDb" class="selflink">#</a></p><div class="doc"><p>The 'Read'\/'Show' and <code><a href="Distribution-Compat-Prelude-Internal.html#t:Binary">Binary</a></code> instances do not preserve all the
 unconfigured <code>Programs</code> because <code><a href="Distribution-Simple-Program.html#t:Program">Program</a></code> is not in 'Read'\/'Show' because
 it contains functions. So to fully restore a deserialised <code><a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></code> use
 this function to add back all the known <code><a href="Distribution-Simple-Program.html#t:Program">Program</a></code>s.</p><ul><li>It does not add the default programs, but you probably want them, use
   <code><a href="Distribution-Simple-Program.html#v:builtinPrograms">builtinPrograms</a></code> in addition to any extra you might need.</li></ul></div></div><div class="top"><p class="src"><a id="v:addKnownProgram" class="def">addKnownProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> <a href="#v:addKnownProgram" class="selflink">#</a></p><div class="doc"><p>Add a known program that we may configure later</p></div></div><div class="top"><p class="src"><a id="v:addKnownPrograms" class="def">addKnownPrograms</a> :: [<a href="Distribution-Simple-Program.html#t:Program">Program</a>] -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> <a href="#v:addKnownPrograms" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:lookupKnownProgram" class="def">lookupKnownProgram</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Distribution-Simple-Program.html#t:Program">Program</a> <a href="#v:lookupKnownProgram" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:knownPrograms" class="def">knownPrograms</a> :: <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; [(<a href="Distribution-Simple-Program.html#t:Program">Program</a>, <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a>)] <a href="#v:knownPrograms" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:getProgramSearchPath" class="def">getProgramSearchPath</a> :: <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramSearchPath">ProgramSearchPath</a> <a href="#v:getProgramSearchPath" class="selflink">#</a></p><div class="doc"><p>Get the current <code><a href="Distribution-Simple-Program.html#t:ProgramSearchPath">ProgramSearchPath</a></code> used by the <code><a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></code>.
 This is the default list of locations where programs are looked for when
 configuring them. This can be overridden for specific programs (with
 <code><a href="Distribution-Simple-Program.html#v:userSpecifyPath">userSpecifyPath</a></code>), and specific known programs can modify or ignore this
 search path in their own configuration code.</p></div></div><div class="top"><p class="src"><a id="v:setProgramSearchPath" class="def">setProgramSearchPath</a> :: <a href="Distribution-Simple-Program.html#t:ProgramSearchPath">ProgramSearchPath</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> <a href="#v:setProgramSearchPath" class="selflink">#</a></p><div class="doc"><p>Change the current <code><a href="Distribution-Simple-Program.html#t:ProgramSearchPath">ProgramSearchPath</a></code> used by the <code><a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></code>.
 This will affect programs that are configured from here on, so you
 should usually set it before configuring any programs.</p></div></div><div class="top"><p class="src"><a id="v:userSpecifyPath" class="def">userSpecifyPath</a> <a href="#v:userSpecifyPath" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a></td><td class="doc"><p>Program name</p></td></tr><tr><td class="src">-&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a></td><td class="doc"><p>user-specified path to the program</p></td></tr><tr><td class="src">-&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>User-specify this path.  Basically override any path information
 for this program in the configuration. If it's not a known
 program ignore it.</p></div></div><div class="top"><p class="src"><a id="v:userSpecifyPaths" class="def">userSpecifyPaths</a> :: [(<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>, <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a>)] -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> <a href="#v:userSpecifyPaths" class="selflink">#</a></p><div class="doc"><p>Like <code><a href="Distribution-Simple-Program.html#v:userSpecifyPath">userSpecifyPath</a></code> but for a list of progs and their paths.</p></div></div><div class="top"><p class="src"><a id="v:userMaybeSpecifyPath" class="def">userMaybeSpecifyPath</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> <a href="#v:userMaybeSpecifyPath" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:userSpecifyArgs" class="def">userSpecifyArgs</a> <a href="#v:userSpecifyArgs" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a></td><td class="doc"><p>Program name</p></td></tr><tr><td class="src">-&gt; [<a href="Distribution-Simple-Program.html#t:ProgArg">ProgArg</a>]</td><td class="doc"><p>user-specified args</p></td></tr><tr><td class="src">-&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>User-specify the arguments for this program.  Basically override
 any args information for this program in the configuration. If it's
 not a known program, ignore it..</p></div></div><div class="top"><p class="src"><a id="v:userSpecifyArgss" class="def">userSpecifyArgss</a> :: [(<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>, [<a href="Distribution-Simple-Program.html#t:ProgArg">ProgArg</a>])] -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> <a href="#v:userSpecifyArgss" class="selflink">#</a></p><div class="doc"><p>Like <code><a href="Distribution-Simple-Program.html#v:userSpecifyPath">userSpecifyPath</a></code> but for a list of progs and their args.</p></div></div><div class="top"><p class="src"><a id="v:userSpecifiedArgs" class="def">userSpecifiedArgs</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; [<a href="Distribution-Simple-Program.html#t:ProgArg">ProgArg</a>] <a href="#v:userSpecifiedArgs" class="selflink">#</a></p><div class="doc"><p>Get any extra args that have been previously specified for a program.</p></div></div><div class="top"><p class="src"><a id="v:lookupProgram" class="def">lookupProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> <a href="#v:lookupProgram" class="selflink">#</a></p><div class="doc"><p>Try to find a configured program</p></div></div><div class="top"><p class="src"><a id="v:lookupProgramVersion" class="def">lookupProgramVersion</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:Program">Program</a> -&gt; <a href="Distribution-Version.html#t:VersionRange">VersionRange</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Either.html#t:Either">Either</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a> (<a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a>, <a href="Distribution-Version.html#t:Version">Version</a>, <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a>)) <a href="#v:lookupProgramVersion" class="selflink">#</a></p><div class="doc"><p>Check that a program is configured and available to be run.</p><p>Additionally check that the program version number is suitable and return
 it. For example you could require <code><a href="Distribution-Version.html#v:AnyVersion">AnyVersion</a></code> or <code><code><a href="Distribution-Version.html#v:orLaterVersion">orLaterVersion</a></code>
 (<code><a href="Distribution-Version.html#t:Version">Version</a></code> [1,0] [])</code></p><p>It returns the configured program, its version number and a possibly updated
 <code><a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></code>. If the program could not be configured or the version is
 unsuitable, it returns an error value.</p></div></div><div class="top"><p class="src"><a id="v:updateProgram" class="def">updateProgram</a> :: <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> <a href="#v:updateProgram" class="selflink">#</a></p><div class="doc"><p>Update a configured program in the database.</p></div></div><div class="top"><p class="src"><a id="v:configureProgram" class="def">configureProgram</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:Program">Program</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> <a href="#v:configureProgram" class="selflink">#</a></p><div class="doc"><p>Try to configure a specific program. If the program is already included in
 the collection of unconfigured programs then we use any user-supplied
 location and arguments. If the program gets configured successfully it gets
 added to the configured collection.</p><p>Note that it is not a failure if the program cannot be configured. It's only
 a failure if the user supplied a location and the program could not be found
 at that location.</p><p>The reason for it not being a failure at this stage is that we don't know up
 front all the programs we will need, so we try to configure them all.
 To verify that a program was actually successfully configured use
 <code><a href="Distribution-Simple-Program.html#v:requireProgram">requireProgram</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:configureAllKnownPrograms" class="def">configureAllKnownPrograms</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> <a href="#v:configureAllKnownPrograms" class="selflink">#</a></p><div class="doc"><p>Try to configure all the known programs that have not yet been configured.</p></div></div><div class="top"><p class="src"><a id="v:reconfigurePrograms" class="def">reconfigurePrograms</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; [(<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>, <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a>)] -&gt; [(<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a>, [<a href="Distribution-Simple-Program.html#t:ProgArg">ProgArg</a>])] -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> <a href="#v:reconfigurePrograms" class="selflink">#</a></p><div class="doc"><p>reconfigure a bunch of programs given new user-specified args. It takes
 the same inputs as <code><a href="Distribution-Simple-Program.html#v:userSpecifyPath">userSpecifyPath</a></code> and <code><a href="Distribution-Simple-Program.html#v:userSpecifyArgs">userSpecifyArgs</a></code> and for all progs
 with a new path it calls <code><a href="Distribution-Simple-Program.html#v:configureProgram">configureProgram</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:requireProgram" class="def">requireProgram</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:Program">Program</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> (<a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a>, <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a>) <a href="#v:requireProgram" class="selflink">#</a></p><div class="doc"><p>Check that a program is configured and available to be run.</p><p>It raises an exception if the program could not be configured, otherwise
 it returns the configured program.</p></div></div><div class="top"><p class="src"><a id="v:requireProgramVersion" class="def">requireProgramVersion</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:Program">Program</a> -&gt; <a href="Distribution-Version.html#t:VersionRange">VersionRange</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> (<a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a>, <a href="Distribution-Version.html#t:Version">Version</a>, <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a>) <a href="#v:requireProgramVersion" class="selflink">#</a></p><div class="doc"><p>Like <code><a href="Distribution-Simple-Program.html#v:lookupProgramVersion">lookupProgramVersion</a></code>, but raises an exception in case of error
 instead of returning 'Left errMsg'.</p></div></div><div class="top"><p class="src"><a id="v:runDbProgram" class="def">runDbProgram</a> <a href="#v:runDbProgram" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a></td><td class="doc"><p>verbosity</p></td></tr><tr><td class="src">-&gt; <a href="Distribution-Simple-Program.html#t:Program">Program</a></td><td class="doc"><p>The program to run</p></td></tr><tr><td class="src">-&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></td><td class="doc"><p>look up the program here</p></td></tr><tr><td class="src">-&gt; [<a href="Distribution-Simple-Program.html#t:ProgArg">ProgArg</a>]</td><td class="doc"><p>Any <em>extra</em> arguments to add</p></td></tr><tr><td class="src">-&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> ()</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Looks up the given program in the program database and runs it.</p></div></div><div class="top"><p class="src"><a id="v:getDbProgramOutput" class="def">getDbProgramOutput</a> <a href="#v:getDbProgramOutput" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a></td><td class="doc"><p>verbosity</p></td></tr><tr><td class="src">-&gt; <a href="Distribution-Simple-Program.html#t:Program">Program</a></td><td class="doc"><p>The program to run</p></td></tr><tr><td class="src">-&gt; <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a></td><td class="doc"><p>look up the program here</p></td></tr><tr><td class="src">-&gt; [<a href="Distribution-Simple-Program.html#t:ProgArg">ProgArg</a>]</td><td class="doc"><p>Any <em>extra</em> arguments to add</p></td></tr><tr><td class="src">-&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Looks up the given program in the program database and runs it.</p></div></div><h1 id="g:6">Programs that Cabal knows about</h1><div class="top"><p class="src"><a id="v:ghcProgram" class="def">ghcProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> <a href="#v:ghcProgram" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:ghcPkgProgram" class="def">ghcPkgProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> <a href="#v:ghcPkgProgram" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:ghcjsProgram" class="def">ghcjsProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> <a href="#v:ghcjsProgram" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:ghcjsPkgProgram" class="def">ghcjsPkgProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> <a href="#v:ghcjsPkgProgram" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:lhcProgram" class="def">lhcProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> <a href="#v:lhcProgram" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:lhcPkgProgram" class="def">lhcPkgProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> <a href="#v:lhcPkgProgram" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:hmakeProgram" class="def">hmakeProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> <a href="#v:hmakeProgram" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:jhcProgram" class="def">jhcProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> <a href="#v:jhcProgram" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:uhcProgram" class="def">uhcProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> <a href="#v:uhcProgram" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:gccProgram" class="def">gccProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> <a href="#v:gccProgram" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:arProgram" class="def">arProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> <a href="#v:arProgram" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:stripProgram" class="def">stripProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> <a href="#v:stripProgram" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:happyProgram" class="def">happyProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> <a href="#v:happyProgram" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:alexProgram" class="def">alexProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> <a href="#v:alexProgram" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:hsc2hsProgram" class="def">hsc2hsProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> <a href="#v:hsc2hsProgram" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:c2hsProgram" class="def">c2hsProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> <a href="#v:c2hsProgram" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:cpphsProgram" class="def">cpphsProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> <a href="#v:cpphsProgram" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:hscolourProgram" class="def">hscolourProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> <a href="#v:hscolourProgram" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:doctestProgram" class="def">doctestProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> <a href="#v:doctestProgram" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:haddockProgram" class="def">haddockProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> <a href="#v:haddockProgram" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:greencardProgram" class="def">greencardProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> <a href="#v:greencardProgram" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:ldProgram" class="def">ldProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> <a href="#v:ldProgram" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:tarProgram" class="def">tarProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> <a href="#v:tarProgram" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:cppProgram" class="def">cppProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> <a href="#v:cppProgram" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:pkgConfigProgram" class="def">pkgConfigProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> <a href="#v:pkgConfigProgram" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:hpcProgram" class="def">hpcProgram</a> :: <a href="Distribution-Simple-Program.html#t:Program">Program</a> <a href="#v:hpcProgram" class="selflink">#</a></p></div><h1 id="g:7">deprecated</h1><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:ProgramConfiguration" class="def">ProgramConfiguration</a> = <a href="Distribution-Simple-Program.html#t:ProgramDb">ProgramDb</a> <a href="#t:ProgramConfiguration" class="selflink">#</a></p><div class="doc"><div class="warning"><p>Deprecated: use ProgramDb instead</p></div></div></div><div class="top"><p class="src"><a id="v:emptyProgramConfiguration" class="def">emptyProgramConfiguration</a> :: <a href="Distribution-Simple-Program.html#t:ProgramConfiguration">ProgramConfiguration</a> <a href="#v:emptyProgramConfiguration" class="selflink">#</a></p><div class="doc"><div class="warning"><p>Deprecated: use emptyProgramDb instead</p></div></div></div><div class="top"><p class="src"><a id="v:defaultProgramConfiguration" class="def">defaultProgramConfiguration</a> :: <a href="Distribution-Simple-Program.html#t:ProgramConfiguration">ProgramConfiguration</a> <a href="#v:defaultProgramConfiguration" class="selflink">#</a></p><div class="doc"><div class="warning"><p>Deprecated: use defaultProgramDb instead</p></div></div></div><div class="top"><p class="src"><a id="v:restoreProgramConfiguration" class="def">restoreProgramConfiguration</a> :: [<a href="Distribution-Simple-Program.html#t:Program">Program</a>] -&gt; <a href="Distribution-Simple-Program.html#t:ProgramConfiguration">ProgramConfiguration</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramConfiguration">ProgramConfiguration</a> <a href="#v:restoreProgramConfiguration" class="selflink">#</a></p><div class="doc"><div class="warning"><p>Deprecated: use restoreProgramDb instead</p></div></div></div><div class="top"><p class="src"><a id="v:rawSystemProgram" class="def">rawSystemProgram</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> -&gt; [<a href="Distribution-Simple-Program.html#t:ProgArg">ProgArg</a>] -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> () <a href="#v:rawSystemProgram" class="selflink">#</a></p><div class="doc"><div class="warning"><p>Deprecated: use runProgram instead</p></div></div></div><div class="top"><p class="src"><a id="v:rawSystemProgramStdout" class="def">rawSystemProgramStdout</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:ConfiguredProgram">ConfiguredProgram</a> -&gt; [<a href="Distribution-Simple-Program.html#t:ProgArg">ProgArg</a>] -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a> <a href="#v:rawSystemProgramStdout" class="selflink">#</a></p><div class="doc"><div class="warning"><p>Deprecated: use getProgramOutput instead</p></div></div></div><div class="top"><p class="src"><a id="v:rawSystemProgramConf" class="def">rawSystemProgramConf</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:Program">Program</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramConfiguration">ProgramConfiguration</a> -&gt; [<a href="Distribution-Simple-Program.html#t:ProgArg">ProgArg</a>] -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> () <a href="#v:rawSystemProgramConf" class="selflink">#</a></p><div class="doc"><div class="warning"><p>Deprecated: use runDbProgram instead</p></div></div></div><div class="top"><p class="src"><a id="v:rawSystemProgramStdoutConf" class="def">rawSystemProgramStdoutConf</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program.html#t:Program">Program</a> -&gt; <a href="Distribution-Simple-Program.html#t:ProgramConfiguration">ProgramConfiguration</a> -&gt; [<a href="Distribution-Simple-Program.html#t:ProgArg">ProgArg</a>] -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a> <a href="#v:rawSystemProgramStdoutConf" class="selflink">#</a></p><div class="doc"><div class="warning"><p>Deprecated: use getDbProgramOutput instead</p></div></div></div><div class="top"><p class="src"><a id="v:findProgramOnPath" class="def">findProgramOnPath</a> :: <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-String.html#t:String">String</a> -&gt; <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a>) <a href="#v:findProgramOnPath" class="selflink">#</a></p><div class="doc"><div class="warning"><p>Deprecated: use findProgramOnSearchPath instead</p></div></div></div><div class="top"><p class="src"><a id="v:findProgramLocation" class="def">findProgramLocation</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Distribution-Compat-Prelude-Internal.html#t:IO">IO</a> (<a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///opt/ghc/8.2.2/share/doc/ghc-8.2.2/html/libraries/base-4.10.1.0/System-IO.html#t:FilePath">FilePath</a>) <a href="#v:findProgramLocation" class="selflink">#</a></p><div class="doc"><div class="warning"><p>Deprecated: No longer used within Cabal, try findProgramOnSearchPath</p></div><p>Look for a program on the path.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.18.1</p></div></body></html>