Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 6e204a966e8c42d976f99a1700ce5f20 > files > 2053

ghc-7.4.2-4.mga5.i586.rpm

<!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.Db</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Distribution-Simple-Program-Db.html");};
//]]>
</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-1.14.0: A framework for packaging Haskell software</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>portable</td></tr><tr><th>Maintainer</th><td>cabal-devel@haskell.org</td></tr><tr><th>Safe Haskell</th><td>None</td></tr></table><p class="caption">Distribution.Simple.Program.Db</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">The collection of configured programs we can run
</a><ul><li><a href="#g:2">Query and manipulate the program db
</a></li><li><a href="#g:3">Query and manipulate the program db
</a></li></ul></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This provides a <code><a href="Distribution-Simple-Program-Db.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-Db.html#t:ProgramDb">ProgramDb</a></code> would probably be a reader or state component of it.
</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 a hook for adding programs in a Setup.lhs script.  See
 hookedPrograms in <code><a href="Distribution-Simple.html#t: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:ProgramDb">ProgramDb</a> </li><li class="src short"><a href="#v:emptyProgramDb">emptyProgramDb</a> :: <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a></li><li class="src short"><a href="#v:defaultProgramDb">defaultProgramDb</a> :: <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a></li><li class="src short"><a href="#v:restoreProgramDb">restoreProgramDb</a> :: [<a href="Distribution-Simple-Program-Types.html#t:Program">Program</a>] -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a></li><li class="src short"><a href="#v:addKnownProgram">addKnownProgram</a> :: <a href="Distribution-Simple-Program-Types.html#t:Program">Program</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a></li><li class="src short"><a href="#v:addKnownPrograms">addKnownPrograms</a> :: [<a href="Distribution-Simple-Program-Types.html#t:Program">Program</a>] -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a></li><li class="src short"><a href="#v:lookupKnownProgram">lookupKnownProgram</a> :: <a href="../base-4.5.1.0/Data-String.html#t:String">String</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="../base-4.5.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Distribution-Simple-Program-Types.html#t:Program">Program</a></li><li class="src short"><a href="#v:knownPrograms">knownPrograms</a> :: <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; [(<a href="Distribution-Simple-Program-Types.html#t:Program">Program</a>, <a href="../base-4.5.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Distribution-Simple-Program-Types.html#t:ConfiguredProgram">ConfiguredProgram</a>)]</li><li class="src short"><a href="#v:userSpecifyPath">userSpecifyPath</a> :: <a href="../base-4.5.1.0/Data-String.html#t:String">String</a> -&gt; <a href="../base-4.5.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a></li><li class="src short"><a href="#v:userSpecifyPaths">userSpecifyPaths</a> :: [(<a href="../base-4.5.1.0/Data-String.html#t:String">String</a>, <a href="../base-4.5.1.0/System-IO.html#t:FilePath">FilePath</a>)] -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a></li><li class="src short"><a href="#v:userMaybeSpecifyPath">userMaybeSpecifyPath</a> :: <a href="../base-4.5.1.0/Data-String.html#t:String">String</a> -&gt; <a href="../base-4.5.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="../base-4.5.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a></li><li class="src short"><a href="#v:userSpecifyArgs">userSpecifyArgs</a> :: <a href="../base-4.5.1.0/Data-String.html#t:String">String</a> -&gt; [<a href="Distribution-Simple-Program-Types.html#t:ProgArg">ProgArg</a>] -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a></li><li class="src short"><a href="#v:userSpecifyArgss">userSpecifyArgss</a> :: [(<a href="../base-4.5.1.0/Data-String.html#t:String">String</a>, [<a href="Distribution-Simple-Program-Types.html#t:ProgArg">ProgArg</a>])] -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a></li><li class="src short"><a href="#v:userSpecifiedArgs">userSpecifiedArgs</a> :: <a href="Distribution-Simple-Program-Types.html#t:Program">Program</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; [<a href="Distribution-Simple-Program-Types.html#t:ProgArg">ProgArg</a>]</li><li class="src short"><a href="#v:lookupProgram">lookupProgram</a> :: <a href="Distribution-Simple-Program-Types.html#t:Program">Program</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="../base-4.5.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Distribution-Simple-Program-Types.html#t:ConfiguredProgram">ConfiguredProgram</a></li><li class="src short"><a href="#v:updateProgram">updateProgram</a> :: <a href="Distribution-Simple-Program-Types.html#t:ConfiguredProgram">ConfiguredProgram</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program-Db.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-Types.html#t:Program">Program</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> <a href="Distribution-Simple-Program-Db.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-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> <a href="Distribution-Simple-Program-Db.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="../base-4.5.1.0/Data-String.html#t:String">String</a>, <a href="../base-4.5.1.0/System-IO.html#t:FilePath">FilePath</a>)] -&gt; [(<a href="../base-4.5.1.0/Data-String.html#t:String">String</a>, [<a href="Distribution-Simple-Program-Types.html#t:ProgArg">ProgArg</a>])] -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> <a href="Distribution-Simple-Program-Db.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-Types.html#t:Program">Program</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> (<a href="Distribution-Simple-Program-Types.html#t:ConfiguredProgram">ConfiguredProgram</a>, <a href="Distribution-Simple-Program-Db.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-Types.html#t:Program">Program</a> -&gt; <a href="Distribution-Version.html#t:VersionRange">VersionRange</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> (<a href="Distribution-Simple-Program-Types.html#t:ConfiguredProgram">ConfiguredProgram</a>, <a href="Distribution-Version.html#t:Version">Version</a>, <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a>)</li></ul></div><div id="interface"><h1 id="g:1">The collection of configured programs we can run
</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:ProgramDb" class="def">ProgramDb</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-Types.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"><a href="../base-4.5.1.0/Text-Read.html#t:Read">Read</a> <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="../base-4.5.1.0/Text-Show.html#t:Show">Show</a> <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:emptyProgramDb" class="def">emptyProgramDb</a> :: <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a></p></div><div class="top"><p class="src"><a name="v:defaultProgramDb" class="def">defaultProgramDb</a> :: <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a></p></div><div class="top"><p class="src"><a name="v:restoreProgramDb" class="def">restoreProgramDb</a> :: [<a href="Distribution-Simple-Program-Types.html#t:Program">Program</a>] -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a></p><div class="doc"><p>The Read/Show instance does not preserve all the unconfigured <code>Programs</code>
 because <code><a href="Distribution-Simple-Program-Types.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-Db.html#t:ProgramDb">ProgramDb</a></code> use this function to add
 back all the known <code><a href="Distribution-Simple-Program-Types.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-Builtin.html#v:builtinPrograms">builtinPrograms</a></code> in addition to any extra you might need.
</li></ul></div></div><h2 id="g:2">Query and manipulate the program db
</h2><div class="top"><p class="src"><a name="v:addKnownProgram" class="def">addKnownProgram</a> :: <a href="Distribution-Simple-Program-Types.html#t:Program">Program</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</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 name="v:addKnownPrograms" class="def">addKnownPrograms</a> :: [<a href="Distribution-Simple-Program-Types.html#t:Program">Program</a>] -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a></p></div><div class="top"><p class="src"><a name="v:lookupKnownProgram" class="def">lookupKnownProgram</a> :: <a href="../base-4.5.1.0/Data-String.html#t:String">String</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="../base-4.5.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Distribution-Simple-Program-Types.html#t:Program">Program</a></p></div><div class="top"><p class="src"><a name="v:knownPrograms" class="def">knownPrograms</a> :: <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; [(<a href="Distribution-Simple-Program-Types.html#t:Program">Program</a>, <a href="../base-4.5.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Distribution-Simple-Program-Types.html#t:ConfiguredProgram">ConfiguredProgram</a>)]</p></div><div class="top"><p class="src"><a name="v:userSpecifyPath" class="def">userSpecifyPath</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="../base-4.5.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="../base-4.5.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-Db.html#t:ProgramDb">ProgramDb</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="Distribution-Simple-Program-Db.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 name="v:userSpecifyPaths" class="def">userSpecifyPaths</a> :: [(<a href="../base-4.5.1.0/Data-String.html#t:String">String</a>, <a href="../base-4.5.1.0/System-IO.html#t:FilePath">FilePath</a>)] -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a></p><div class="doc"><p>Like <code><a href="Distribution-Simple-Program-Db.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 name="v:userMaybeSpecifyPath" class="def">userMaybeSpecifyPath</a> :: <a href="../base-4.5.1.0/Data-String.html#t:String">String</a> -&gt; <a href="../base-4.5.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="../base-4.5.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a></p></div><div class="top"><p class="src"><a name="v:userSpecifyArgs" class="def">userSpecifyArgs</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="../base-4.5.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-Types.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-Db.html#t:ProgramDb">ProgramDb</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="Distribution-Simple-Program-Db.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 name="v:userSpecifyArgss" class="def">userSpecifyArgss</a> :: [(<a href="../base-4.5.1.0/Data-String.html#t:String">String</a>, [<a href="Distribution-Simple-Program-Types.html#t:ProgArg">ProgArg</a>])] -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a></p><div class="doc"><p>Like <code><a href="Distribution-Simple-Program-Db.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 name="v:userSpecifiedArgs" class="def">userSpecifiedArgs</a> :: <a href="Distribution-Simple-Program-Types.html#t:Program">Program</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; [<a href="Distribution-Simple-Program-Types.html#t:ProgArg">ProgArg</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 name="v:lookupProgram" class="def">lookupProgram</a> :: <a href="Distribution-Simple-Program-Types.html#t:Program">Program</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="../base-4.5.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Distribution-Simple-Program-Types.html#t:ConfiguredProgram">ConfiguredProgram</a></p><div class="doc"><p>Try to find a configured program
</p></div></div><div class="top"><p class="src"><a name="v:updateProgram" class="def">updateProgram</a> :: <a href="Distribution-Simple-Program-Types.html#t:ConfiguredProgram">ConfiguredProgram</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a></p><div class="doc"><p>Update a configured program in the database.
</p></div></div><h2 id="g:3">Query and manipulate the program db
</h2><div class="top"><p class="src"><a name="v:configureProgram" class="def">configureProgram</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program-Types.html#t:Program">Program</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a></p><div class="doc"><p>Try to configure a specific program. If the program is already included in
 the colleciton of unconfigured programs then we use any user-supplied
 location and arguments. If the program gets configured sucessfully 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 sucessfully configured use
 <code><a href="Distribution-Simple-Program-Db.html#v:requireProgram">requireProgram</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:configureAllKnownPrograms" class="def">configureAllKnownPrograms</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</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 name="v:reconfigurePrograms" class="def">reconfigurePrograms</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; [(<a href="../base-4.5.1.0/Data-String.html#t:String">String</a>, <a href="../base-4.5.1.0/System-IO.html#t:FilePath">FilePath</a>)] -&gt; [(<a href="../base-4.5.1.0/Data-String.html#t:String">String</a>, [<a href="Distribution-Simple-Program-Types.html#t:ProgArg">ProgArg</a>])] -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</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-Db.html#v:userSpecifyPath">userSpecifyPath</a></code> and <code><a href="Distribution-Simple-Program-Db.html#v:userSpecifyArgs">userSpecifyArgs</a></code> and for all progs
 with a new path it calls <code><a href="Distribution-Simple-Program-Db.html#v:configureProgram">configureProgram</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:requireProgram" class="def">requireProgram</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program-Types.html#t:Program">Program</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> (<a href="Distribution-Simple-Program-Types.html#t:ConfiguredProgram">ConfiguredProgram</a>, <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</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 name="v:requireProgramVersion" class="def">requireProgramVersion</a> :: <a href="Distribution-Verbosity.html#t:Verbosity">Verbosity</a> -&gt; <a href="Distribution-Simple-Program-Types.html#t:Program">Program</a> -&gt; <a href="Distribution-Version.html#t:VersionRange">VersionRange</a> -&gt; <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a> -&gt; <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> (<a href="Distribution-Simple-Program-Types.html#t:ConfiguredProgram">ConfiguredProgram</a>, <a href="Distribution-Version.html#t:Version">Version</a>, <a href="Distribution-Simple-Program-Db.html#t:ProgramDb">ProgramDb</a>)</p><div class="doc"><p>Check that a program is configured and available to be run.
</p><p>Additionally check that the version of the program number is suitable and
 return it. For example you could require <code>AnyVersion</code> or
 <code><code>orLaterVersion</code> (<code><a href="Distribution-Version.html#t:Version">Version</a></code> [1,0] [])</code>
</p><p>It raises an exception if the program could not be configured or the version
 is unsuitable, otherwise it returns the configured program and its version
 number.
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.11.0</p></div></body></html>