Sophie

Sophie

distrib > Fedora > 19 > i386 > by-pkgid > 6141746cd5048a6ddf1cf3194274ce61 > files > 730

ghc-Agda-devel-2.3.2.1-5.fc19.i686.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>Agda.Compiler.Epic.NatDetection</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_Agda-Compiler-Epic-NatDetection.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Agda-Compiler-Epic-NatDetection.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">Agda-2.3.2.1: A dependently typed functional programming language and proof assistant</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">Agda.Compiler.Epic.NatDetection</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Detect if a datatype could be represented as a primitive integer.
   If it has one constructor with no arguments and one with a recursive
   argument this is true. This is done using IrrFilters which filter out
   forced arguments, so for example Fin becomes primitive.
</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:getNatish">getNatish</a> :: <a href="Agda-Compiler-Epic-CompileState.html#t:Compile">Compile</a> <a href="Agda-TypeChecking-Monad-Base.html#t:TCM">TCM</a> [(<a href="Agda-Compiler-Epic-Interface.html#t:ForcedArgs">ForcedArgs</a>, [<a href="Agda-Syntax-Abstract-Name.html#t:QName">QName</a>])]</li><li class="src short"><a href="#v:isNatish">isNatish</a> :: <a href="Agda-Syntax-Abstract-Name.html#t:QName">QName</a> -&gt; <a href="Agda-TypeChecking-Monad-Base.html#t:Defn">Defn</a> -&gt; <a href="Agda-Compiler-Epic-CompileState.html#t:Compile">Compile</a> <a href="Agda-TypeChecking-Monad-Base.html#t:TCM">TCM</a> (<a href="/usr/share/doc/ghc/html/libraries/base-4.5.1.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Agda-Compiler-Epic-Interface.html#t:ForcedArgs">ForcedArgs</a>, [<a href="Agda-Syntax-Abstract-Name.html#t:QName">QName</a>]))</li><li class="src short"><a href="#v:nrRel">nrRel</a> :: <a href="Agda-Compiler-Epic-Interface.html#t:ForcedArgs">ForcedArgs</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.1.0/Prelude.html#t:Integer">Integer</a></li><li class="src short"><a href="#v:isRec">isRec</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Agda-Syntax-Internal.html#t:Type">Type</a> -&gt; <a href="Agda-Syntax-Abstract-Name.html#t:QName">QName</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:argIsDef">argIsDef</a> :: <a href="Agda-Syntax-Internal.html#t:Type">Type</a> -&gt; <a href="Agda-Syntax-Abstract-Name.html#t:QName">QName</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.1.0/Data-Bool.html#t:Bool">Bool</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:getNatish" class="def">getNatish</a> :: <a href="Agda-Compiler-Epic-CompileState.html#t:Compile">Compile</a> <a href="Agda-TypeChecking-Monad-Base.html#t:TCM">TCM</a> [(<a href="Agda-Compiler-Epic-Interface.html#t:ForcedArgs">ForcedArgs</a>, [<a href="Agda-Syntax-Abstract-Name.html#t:QName">QName</a>])]<a href="src/Agda-Compiler-Epic-NatDetection.html#getNatish" class="link">Source</a></p><div class="doc"><p>Get a list of all the datatypes that look like nats. The [QName] is on the
   form [zeroConstr, sucConstr]
</p></div></div><div class="top"><p class="src"><a name="v:isNatish" class="def">isNatish</a> :: <a href="Agda-Syntax-Abstract-Name.html#t:QName">QName</a> -&gt; <a href="Agda-TypeChecking-Monad-Base.html#t:Defn">Defn</a> -&gt; <a href="Agda-Compiler-Epic-CompileState.html#t:Compile">Compile</a> <a href="Agda-TypeChecking-Monad-Base.html#t:TCM">TCM</a> (<a href="/usr/share/doc/ghc/html/libraries/base-4.5.1.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Agda-Compiler-Epic-Interface.html#t:ForcedArgs">ForcedArgs</a>, [<a href="Agda-Syntax-Abstract-Name.html#t:QName">QName</a>]))<a href="src/Agda-Compiler-Epic-NatDetection.html#isNatish" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:nrRel" class="def">nrRel</a> :: <a href="Agda-Compiler-Epic-Interface.html#t:ForcedArgs">ForcedArgs</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.1.0/Prelude.html#t:Integer">Integer</a><a href="src/Agda-Compiler-Epic-NatDetection.html#nrRel" class="link">Source</a></p><div class="doc"><p>Count the number of relevant arguments
</p></div></div><div class="top"><p class="src"><a name="v:isRec" class="def">isRec</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Agda-Syntax-Internal.html#t:Type">Type</a> -&gt; <a href="Agda-Syntax-Abstract-Name.html#t:QName">QName</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.1.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Agda-Compiler-Epic-NatDetection.html#isRec" class="link">Source</a></p><div class="doc"><p>Check if argument n is recursive
</p></div></div><div class="top"><p class="src"><a name="v:argIsDef" class="def">argIsDef</a> :: <a href="Agda-Syntax-Internal.html#t:Type">Type</a> -&gt; <a href="Agda-Syntax-Abstract-Name.html#t:QName">QName</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.1.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Agda-Compiler-Epic-NatDetection.html#argIsDef" class="link">Source</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>