Sophie

Sophie

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

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.Utils.Impossible</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-Utils-Impossible.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Agda-Utils-Impossible.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>Safe-Infered</td></tr></table><p class="caption">Agda.Utils.Impossible</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>An interface for reporting &quot;impossible&quot; errors
</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:Impossible">Impossible</a>  = <a href="#v:Impossible">Impossible</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.1.0/Data-String.html#t:String">String</a> <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:throwImpossible">throwImpossible</a> ::  <a href="Agda-Utils-Impossible.html#t:Impossible">Impossible</a> -&gt; a</li><li class="src short"><a href="#v:catchImpossible">catchImpossible</a> ::  <a href="/usr/share/doc/ghc/html/libraries/base-4.5.1.0/System-IO.html#t:IO">IO</a> a -&gt; (<a href="Agda-Utils-Impossible.html#t:Impossible">Impossible</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.1.0/System-IO.html#t:IO">IO</a> a) -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.1.0/System-IO.html#t:IO">IO</a> a</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:Impossible" class="def">Impossible</a>  <a href="src/Agda-Utils-Impossible.html#Impossible" class="link">Source</a></p><div class="doc"><p>&quot;Impossible&quot; errors, annotated with a file name and a line
 number corresponding to the source code location of the error.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Impossible" class="def">Impossible</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.1.0/Data-String.html#t:String">String</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.1.0/Prelude.html#t:Integer">Integer</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:Impossible" class="caption collapser" onclick="toggleSection('i:Impossible')">Instances</p><div id="section.i:Impossible" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.1.0/Text-Show.html#t:Show">Show</a> <a href="Agda-Utils-Impossible.html#t:Impossible">Impossible</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.1.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Agda-Utils-Impossible.html#t:Impossible">Impossible</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.1.0/Control-Exception-Base.html#t:Exception">Exception</a> <a href="Agda-Utils-Impossible.html#t:Impossible">Impossible</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:throwImpossible" class="def">throwImpossible</a> ::  <a href="Agda-Utils-Impossible.html#t:Impossible">Impossible</a> -&gt; a<a href="src/Agda-Utils-Impossible.html#throwImpossible" class="link">Source</a></p><div class="doc"><p>Abort by throwing an &quot;impossible&quot; error. You should not use
 this function directly. Instead use the macro in <code>undefined.h</code>.
</p></div></div><div class="top"><p class="src"><a name="v:catchImpossible" class="def">catchImpossible</a> ::  <a href="/usr/share/doc/ghc/html/libraries/base-4.5.1.0/System-IO.html#t:IO">IO</a> a -&gt; (<a href="Agda-Utils-Impossible.html#t:Impossible">Impossible</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.1.0/System-IO.html#t:IO">IO</a> a) -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.1.0/System-IO.html#t:IO">IO</a> a<a href="src/Agda-Utils-Impossible.html#catchImpossible" class="link">Source</a></p><div class="doc"><p>Catch an &quot;impossible&quot; error, if possible.
</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>