Sophie

Sophie

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

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>DriverPipeline</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_DriverPipeline.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">ghc-7.4.2: The GHC API</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr></table><p class="caption">DriverPipeline</p></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"><a href="#v:oneShot">oneShot</a> :: <a href="HscTypes.html#t:HscEnv">HscEnv</a> -&gt; <a href="DriverPhases.html#t:Phase">Phase</a> -&gt; [(<a href="../base-4.5.1.0/Data-String.html#t:String">String</a>, <a href="../base-4.5.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="DriverPhases.html#t:Phase">Phase</a>)] -&gt; <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:compileFile">compileFile</a> :: <a href="HscTypes.html#t:HscEnv">HscEnv</a> -&gt; <a href="DriverPhases.html#t:Phase">Phase</a> -&gt; (<a href="../base-4.5.1.0/System-IO.html#t:FilePath">FilePath</a>, <a href="../base-4.5.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="DriverPhases.html#t:Phase">Phase</a>) -&gt; <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> <a href="../base-4.5.1.0/System-IO.html#t:FilePath">FilePath</a></li><li class="src short"><a href="#v:linkBinary">linkBinary</a> :: <a href="DynFlags.html#t:DynFlags">DynFlags</a> -&gt; [<a href="../base-4.5.1.0/System-IO.html#t:FilePath">FilePath</a>] -&gt; [<a href="Module.html#t:PackageId">PackageId</a>] -&gt; <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:preprocess">preprocess</a> :: <a href="HscTypes.html#t:HscEnv">HscEnv</a> -&gt; (<a href="../base-4.5.1.0/System-IO.html#t:FilePath">FilePath</a>, <a href="../base-4.5.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="DriverPhases.html#t:Phase">Phase</a>) -&gt; <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> (<a href="DynFlags.html#t:DynFlags">DynFlags</a>, <a href="../base-4.5.1.0/System-IO.html#t:FilePath">FilePath</a>)</li><li class="src short"><a href="#v:compile">compile</a> :: <a href="HscTypes.html#t:HscEnv">HscEnv</a> -&gt; <a href="HscTypes.html#t:ModSummary">ModSummary</a> -&gt; <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="../base-4.5.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="HscTypes.html#t:ModIface">ModIface</a> -&gt; <a href="../base-4.5.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="HscTypes.html#t:Linkable">Linkable</a> -&gt; <a href="HscTypes.html#t:SourceModified">SourceModified</a> -&gt; <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> <a href="HscTypes.html#t:HomeModInfo">HomeModInfo</a></li><li class="src short"><a href="#v:compile-39-">compile'</a> :: (<a href="HscMain.html#t:Compiler">Compiler</a> (<a href="HscMain.html#t:HscStatus">HscStatus</a>, <a href="HscTypes.html#t:ModIface">ModIface</a>, <a href="HscTypes.html#t:ModDetails">ModDetails</a>), <a href="HscMain.html#t:Compiler">Compiler</a> (<a href="HscMain.html#t:InteractiveStatus">InteractiveStatus</a>, <a href="HscTypes.html#t:ModIface">ModIface</a>, <a href="HscTypes.html#t:ModDetails">ModDetails</a>), <a href="HscMain.html#t:Compiler">Compiler</a> (<a href="HscMain.html#t:HscStatus">HscStatus</a>, <a href="HscTypes.html#t:ModIface">ModIface</a>, <a href="HscTypes.html#t:ModDetails">ModDetails</a>)) -&gt; <a href="HscTypes.html#t:HscEnv">HscEnv</a> -&gt; <a href="HscTypes.html#t:ModSummary">ModSummary</a> -&gt; <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="../base-4.5.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="HscTypes.html#t:ModIface">ModIface</a> -&gt; <a href="../base-4.5.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="HscTypes.html#t:Linkable">Linkable</a> -&gt; <a href="HscTypes.html#t:SourceModified">SourceModified</a> -&gt; <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> <a href="HscTypes.html#t:HomeModInfo">HomeModInfo</a></li><li class="src short"><a href="#v:link">link</a> :: <a href="DynFlags.html#t:GhcLink">GhcLink</a> -&gt; <a href="DynFlags.html#t:DynFlags">DynFlags</a> -&gt; <a href="../base-4.5.1.0/Data-Bool.html#t:Bool">Bool</a> -&gt; <a href="HscTypes.html#t:HomePackageTable">HomePackageTable</a> -&gt; <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> <a href="BasicTypes.html#t:SuccessFlag">SuccessFlag</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:oneShot" class="def">oneShot</a> :: <a href="HscTypes.html#t:HscEnv">HscEnv</a> -&gt; <a href="DriverPhases.html#t:Phase">Phase</a> -&gt; [(<a href="../base-4.5.1.0/Data-String.html#t:String">String</a>, <a href="../base-4.5.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="DriverPhases.html#t:Phase">Phase</a>)] -&gt; <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> ()</p></div><div class="top"><p class="src"><a name="v:compileFile" class="def">compileFile</a> :: <a href="HscTypes.html#t:HscEnv">HscEnv</a> -&gt; <a href="DriverPhases.html#t:Phase">Phase</a> -&gt; (<a href="../base-4.5.1.0/System-IO.html#t:FilePath">FilePath</a>, <a href="../base-4.5.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="DriverPhases.html#t:Phase">Phase</a>) -&gt; <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> <a href="../base-4.5.1.0/System-IO.html#t:FilePath">FilePath</a></p></div><div class="top"><p class="src"><a name="v:linkBinary" class="def">linkBinary</a> :: <a href="DynFlags.html#t:DynFlags">DynFlags</a> -&gt; [<a href="../base-4.5.1.0/System-IO.html#t:FilePath">FilePath</a>] -&gt; [<a href="Module.html#t:PackageId">PackageId</a>] -&gt; <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> ()</p></div><div class="top"><p class="src"><a name="v:preprocess" class="def">preprocess</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="HscTypes.html#t:HscEnv">HscEnv</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; (<a href="../base-4.5.1.0/System-IO.html#t:FilePath">FilePath</a>, <a href="../base-4.5.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="DriverPhases.html#t:Phase">Phase</a>)</td><td class="doc"><p>filename and starting phase
</p></td></tr><tr><td class="src">-&gt; <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> (<a href="DynFlags.html#t:DynFlags">DynFlags</a>, <a href="../base-4.5.1.0/System-IO.html#t:FilePath">FilePath</a>)</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Just preprocess a file, put the result in a temp. file (used by the
 compilation manager during the summary phase).
</p><p>We return the augmented DynFlags, because they contain the result
 of slurping in the OPTIONS pragmas
</p></div></div><div class="top"><p class="src"><a name="v:compile" class="def">compile</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="HscTypes.html#t:HscEnv">HscEnv</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="HscTypes.html#t:ModSummary">ModSummary</a></td><td class="doc"><p>summary for module being compiled
</p></td></tr><tr><td class="src">-&gt; <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>module N ...
</p></td></tr><tr><td class="src">-&gt; <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>... of M
</p></td></tr><tr><td class="src">-&gt; <a href="../base-4.5.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="HscTypes.html#t:ModIface">ModIface</a></td><td class="doc"><p>old interface, if we have one
</p></td></tr><tr><td class="src">-&gt; <a href="../base-4.5.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="HscTypes.html#t:Linkable">Linkable</a></td><td class="doc"><p>old linkable, if we have one
</p></td></tr><tr><td class="src">-&gt; <a href="HscTypes.html#t:SourceModified">SourceModified</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> <a href="HscTypes.html#t:HomeModInfo">HomeModInfo</a></td><td class="doc"><p>the complete HomeModInfo, if successful
</p></td></tr></table></div><div class="doc"><p>Compile
</p><p>Compile a single module, under the control of the compilation manager.
</p><p>This is the interface between the compilation manager and the
 compiler proper (hsc), where we deal with tedious details like
 reading the OPTIONS pragma from the source file, converting the
 C or assembly that GHC produces into an object file, and compiling
 FFI stub files.
</p><p>NB.  No old interface can also mean that the source has changed.
</p></div></div><div class="top"><p class="src"><a name="v:compile-39-" class="def">compile'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="HscMain.html#t:Compiler">Compiler</a> (<a href="HscMain.html#t:HscStatus">HscStatus</a>, <a href="HscTypes.html#t:ModIface">ModIface</a>, <a href="HscTypes.html#t:ModDetails">ModDetails</a>), <a href="HscMain.html#t:Compiler">Compiler</a> (<a href="HscMain.html#t:InteractiveStatus">InteractiveStatus</a>, <a href="HscTypes.html#t:ModIface">ModIface</a>, <a href="HscTypes.html#t:ModDetails">ModDetails</a>), <a href="HscMain.html#t:Compiler">Compiler</a> (<a href="HscMain.html#t:HscStatus">HscStatus</a>, <a href="HscTypes.html#t:ModIface">ModIface</a>, <a href="HscTypes.html#t:ModDetails">ModDetails</a>))</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="HscTypes.html#t:HscEnv">HscEnv</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="HscTypes.html#t:ModSummary">ModSummary</a></td><td class="doc"><p>summary for module being compiled
</p></td></tr><tr><td class="src">-&gt; <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>module N ...
</p></td></tr><tr><td class="src">-&gt; <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>... of M
</p></td></tr><tr><td class="src">-&gt; <a href="../base-4.5.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="HscTypes.html#t:ModIface">ModIface</a></td><td class="doc"><p>old interface, if we have one
</p></td></tr><tr><td class="src">-&gt; <a href="../base-4.5.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="HscTypes.html#t:Linkable">Linkable</a></td><td class="doc"><p>old linkable, if we have one
</p></td></tr><tr><td class="src">-&gt; <a href="HscTypes.html#t:SourceModified">SourceModified</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> <a href="HscTypes.html#t:HomeModInfo">HomeModInfo</a></td><td class="doc"><p>the complete HomeModInfo, if successful
</p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:link" class="def">link</a> :: <a href="DynFlags.html#t:GhcLink">GhcLink</a> -&gt; <a href="DynFlags.html#t:DynFlags">DynFlags</a> -&gt; <a href="../base-4.5.1.0/Data-Bool.html#t:Bool">Bool</a> -&gt; <a href="HscTypes.html#t:HomePackageTable">HomePackageTable</a> -&gt; <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> <a href="BasicTypes.html#t:SuccessFlag">SuccessFlag</a></p></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>