Sophie

Sophie

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

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>Vectorise.Utils.Closure</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_Vectorise-Utils-Closure.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">Vectorise.Utils.Closure</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Utils concerning closure construction and application.
</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"><a href="#v:mkClosure">mkClosure</a> :: <a href="Type.html#t:Type">Type</a> -&gt; <a href="Type.html#t:Type">Type</a> -&gt; <a href="Type.html#t:Type">Type</a> -&gt; <a href="Vectorise-Vect.html#t:VExpr">VExpr</a> -&gt; <a href="Vectorise-Vect.html#t:VExpr">VExpr</a> -&gt; <a href="Vectorise-Monad-Base.html#t:VM">VM</a> <a href="Vectorise-Vect.html#t:VExpr">VExpr</a></li><li class="src short"><a href="#v:mkClosureApp">mkClosureApp</a> :: <a href="Type.html#t:Type">Type</a> -&gt; <a href="Type.html#t:Type">Type</a> -&gt; <a href="Vectorise-Vect.html#t:VExpr">VExpr</a> -&gt; <a href="Vectorise-Vect.html#t:VExpr">VExpr</a> -&gt; <a href="Vectorise-Monad-Base.html#t:VM">VM</a> <a href="Vectorise-Vect.html#t:VExpr">VExpr</a></li><li class="src short"><a href="#v:buildClosures">buildClosures</a> :: [<a href="Var.html#t:TyVar">TyVar</a>] -&gt; [<a href="Var.html#t:Var">Var</a>] -&gt; [<a href="Vectorise-Vect.html#t:VVar">VVar</a>] -&gt; [<a href="Type.html#t:Type">Type</a>] -&gt; <a href="Type.html#t:Type">Type</a> -&gt; <a href="Vectorise-Monad-Base.html#t:VM">VM</a> <a href="Vectorise-Vect.html#t:VExpr">VExpr</a> -&gt; <a href="Vectorise-Monad-Base.html#t:VM">VM</a> <a href="Vectorise-Vect.html#t:VExpr">VExpr</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:mkClosure" class="def">mkClosure</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Type.html#t:Type">Type</a></td><td class="doc"><p>Type of the argument.
</p></td></tr><tr><td class="src">-&gt; <a href="Type.html#t:Type">Type</a></td><td class="doc"><p>Type of the result.
</p></td></tr><tr><td class="src">-&gt; <a href="Type.html#t:Type">Type</a></td><td class="doc"><p>Type of the environment.
</p></td></tr><tr><td class="src">-&gt; <a href="Vectorise-Vect.html#t:VExpr">VExpr</a></td><td class="doc"><p>The function to apply.
</p></td></tr><tr><td class="src">-&gt; <a href="Vectorise-Vect.html#t:VExpr">VExpr</a></td><td class="doc"><p>The environment to use.
</p></td></tr><tr><td class="src">-&gt; <a href="Vectorise-Monad-Base.html#t:VM">VM</a> <a href="Vectorise-Vect.html#t:VExpr">VExpr</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Make a closure.
</p></div></div><div class="top"><p class="src"><a name="v:mkClosureApp" class="def">mkClosureApp</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Type.html#t:Type">Type</a></td><td class="doc"><p>Type of the argument.
</p></td></tr><tr><td class="src">-&gt; <a href="Type.html#t:Type">Type</a></td><td class="doc"><p>Type of the result.
</p></td></tr><tr><td class="src">-&gt; <a href="Vectorise-Vect.html#t:VExpr">VExpr</a></td><td class="doc"><p>Closure to apply.
</p></td></tr><tr><td class="src">-&gt; <a href="Vectorise-Vect.html#t:VExpr">VExpr</a></td><td class="doc"><p>Argument to use.
</p></td></tr><tr><td class="src">-&gt; <a href="Vectorise-Monad-Base.html#t:VM">VM</a> <a href="Vectorise-Vect.html#t:VExpr">VExpr</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Make a closure application.
</p></div></div><div class="top"><p class="src"><a name="v:buildClosures" class="def">buildClosures</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: [<a href="Var.html#t:TyVar">TyVar</a>]</td><td class="doc"><p>Type variables passed during closure construction.
</p></td></tr><tr><td class="src">-&gt; [<a href="Var.html#t:Var">Var</a>]</td><td class="doc"><p>Variables passed during closure construction.
</p></td></tr><tr><td class="src">-&gt; [<a href="Vectorise-Vect.html#t:VVar">VVar</a>]</td><td class="doc"><p>Variables in the environment.
</p></td></tr><tr><td class="src">-&gt; [<a href="Type.html#t:Type">Type</a>]</td><td class="doc"><p>Type of the arguments.
</p></td></tr><tr><td class="src">-&gt; <a href="Type.html#t:Type">Type</a></td><td class="doc"><p>Type of result.
</p></td></tr><tr><td class="src">-&gt; <a href="Vectorise-Monad-Base.html#t:VM">VM</a> <a href="Vectorise-Vect.html#t:VExpr">VExpr</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="Vectorise-Monad-Base.html#t:VM">VM</a> <a href="Vectorise-Vect.html#t:VExpr">VExpr</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Build a set of <code>n</code> closures corresponding to an <code>n</code>-ary vectorised function.  The length of
 the list of types of arguments determines the arity.
</p><p>In addition to a set of type variables, a set of value variables is passed during closure
 <em>construction</em>.  In contrast, the closure environment and the arguments are passed during closure
 application.
</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>