Sophie

Sophie

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

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>Foreign.Marshal.Error</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_Foreign-Marshal-Error.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">haskell2010-1.1.0.1: Compatibility with Haskell 2010</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe</td></tr></table><p class="caption">Foreign.Marshal.Error</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:throwIf">throwIf</a> ::  (a -&gt; <a href="Prelude.html#t:Bool">Bool</a>) -&gt; (a -&gt; <a href="Prelude.html#t:String">String</a>) -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:throwIf_">throwIf_</a> ::  (a -&gt; <a href="Prelude.html#t:Bool">Bool</a>) -&gt; (a -&gt; <a href="Prelude.html#t:String">String</a>) -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:throwIfNeg">throwIfNeg</a> :: (<a href="Prelude.html#t:Ord">Ord</a> a, <a href="Prelude.html#t:Num">Num</a> a) =&gt; (a -&gt; <a href="Prelude.html#t:String">String</a>) -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:throwIfNeg_">throwIfNeg_</a> :: (<a href="Prelude.html#t:Ord">Ord</a> a, <a href="Prelude.html#t:Num">Num</a> a) =&gt; (a -&gt; <a href="Prelude.html#t:String">String</a>) -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:throwIfNull">throwIfNull</a> ::  <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> (<a href="Foreign-Ptr.html#t:Ptr">Ptr</a> a) -&gt; <a href="Prelude.html#t:IO">IO</a> (<a href="Foreign-Ptr.html#t:Ptr">Ptr</a> a)</li><li class="src short"><a href="#v:void">void</a> ::  <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> ()</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:throwIf" class="def">throwIf</a><a href="../base-4.5.1.0/src/Foreign-Marshal-Error.html#throwIf" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (a -&gt; <a href="Prelude.html#t:Bool">Bool</a>)</td><td class="doc"><p>error condition on the result of the <code><a href="Prelude.html#t:IO">IO</a></code> action
</p></td></tr><tr><td class="src">-&gt; (a -&gt; <a href="Prelude.html#t:String">String</a>)</td><td class="doc"><p>computes an error message from erroneous results
 of the <code><a href="Prelude.html#t:IO">IO</a></code> action
</p></td></tr><tr><td class="src">-&gt; <a href="Prelude.html#t:IO">IO</a> a</td><td class="doc"><p>the <code><a href="Prelude.html#t:IO">IO</a></code> action to be executed
</p></td></tr><tr><td class="src">-&gt; <a href="Prelude.html#t:IO">IO</a> a</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Execute an <code><a href="Prelude.html#t:IO">IO</a></code> action, throwing a <code><a href="Prelude.html#v:userError">userError</a></code> if the predicate yields
 <code><a href="Prelude.html#v:True">True</a></code> when applied to the result returned by the <code><a href="Prelude.html#t:IO">IO</a></code> action.
 If no exception is raised, return the result of the computation.
</p></div></div><div class="top"><p class="src"><a name="v:throwIf_" class="def">throwIf_</a> ::  (a -&gt; <a href="Prelude.html#t:Bool">Bool</a>) -&gt; (a -&gt; <a href="Prelude.html#t:String">String</a>) -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> ()<a href="../base-4.5.1.0/src/Foreign-Marshal-Error.html#throwIf_" class="link">Source</a></p><div class="doc"><p>Like <code><a href="Foreign-Marshal-Error.html#v:throwIf">throwIf</a></code>, but discarding the result
</p></div></div><div class="top"><p class="src"><a name="v:throwIfNeg" class="def">throwIfNeg</a> :: (<a href="Prelude.html#t:Ord">Ord</a> a, <a href="Prelude.html#t:Num">Num</a> a) =&gt; (a -&gt; <a href="Prelude.html#t:String">String</a>) -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> a<a href="../base-4.5.1.0/src/Foreign-Marshal-Error.html#throwIfNeg" class="link">Source</a></p><div class="doc"><p>Guards against negative result values
</p></div></div><div class="top"><p class="src"><a name="v:throwIfNeg_" class="def">throwIfNeg_</a> :: (<a href="Prelude.html#t:Ord">Ord</a> a, <a href="Prelude.html#t:Num">Num</a> a) =&gt; (a -&gt; <a href="Prelude.html#t:String">String</a>) -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> ()<a href="../base-4.5.1.0/src/Foreign-Marshal-Error.html#throwIfNeg_" class="link">Source</a></p><div class="doc"><p>Like <code><a href="Foreign-Marshal-Error.html#v:throwIfNeg">throwIfNeg</a></code>, but discarding the result
</p></div></div><div class="top"><p class="src"><a name="v:throwIfNull" class="def">throwIfNull</a> ::  <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> (<a href="Foreign-Ptr.html#t:Ptr">Ptr</a> a) -&gt; <a href="Prelude.html#t:IO">IO</a> (<a href="Foreign-Ptr.html#t:Ptr">Ptr</a> a)<a href="../base-4.5.1.0/src/Foreign-Marshal-Error.html#throwIfNull" class="link">Source</a></p><div class="doc"><p>Guards against null pointers
</p></div></div><div class="top"><p class="src"><a name="v:void" class="def">void</a> ::  <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> ()<a href="../base-4.5.1.0/src/Foreign-Marshal-Error.html#void" class="link">Source</a></p><div class="doc"><p>Discard the return value of an <code><a href="Prelude.html#t:IO">IO</a></code> action
</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>