Sophie

Sophie

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

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>Data.STRef</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_Data-STRef.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">base-4.5.1.0: Basic libraries</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>non-portable (uses Control.Monad.ST)</td></tr><tr><th>Stability</th><td>experimental</td></tr><tr><th>Maintainer</th><td>libraries@haskell.org</td></tr><tr><th>Safe Haskell</th><td>Trustworthy</td></tr></table><p class="caption">Data.STRef</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">STRefs
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Mutable references in the (strict) ST monad.
</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:STRef">STRef</a> s a</li><li class="src short"><a href="#v:newSTRef">newSTRef</a> ::  a -&gt; <a href="Control-Monad-ST-Safe.html#t:ST">ST</a> s (<a href="Data-STRef.html#t:STRef">STRef</a> s a)</li><li class="src short"><a href="#v:readSTRef">readSTRef</a> ::  <a href="Data-STRef.html#t:STRef">STRef</a> s a -&gt; <a href="Control-Monad-ST-Safe.html#t:ST">ST</a> s a</li><li class="src short"><a href="#v:writeSTRef">writeSTRef</a> ::  <a href="Data-STRef.html#t:STRef">STRef</a> s a -&gt; a -&gt; <a href="Control-Monad-ST-Safe.html#t:ST">ST</a> s <a href="../ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:modifySTRef">modifySTRef</a> ::  <a href="Data-STRef.html#t:STRef">STRef</a> s a -&gt; (a -&gt; a) -&gt; <a href="Control-Monad-ST-Safe.html#t:ST">ST</a> s <a href="../ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li></ul></div><div id="interface"><h1 id="g:1">STRefs
</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:STRef" class="def">STRef</a> s a </p><div class="doc"><p>a value of type <code>STRef s a</code> is a mutable variable in state thread <code>s</code>,
 containing a value of type <code>a</code>
</p></div><div class="subs instances"><p id="control.i:STRef" class="caption collapser" onclick="toggleSection('i:STRef')">Instances</p><div id="section.i:STRef" class="show"><table><tr><td class="src"><a href="Data-Typeable-Internal.html#t:Typeable2">Typeable2</a> <a href="Data-STRef.html#t:STRef">STRef</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Data-Eq.html#t:Eq">Eq</a> (<a href="Data-STRef.html#t:STRef">STRef</a> s a)</td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:newSTRef" class="def">newSTRef</a> ::  a -&gt; <a href="Control-Monad-ST-Safe.html#t:ST">ST</a> s (<a href="Data-STRef.html#t:STRef">STRef</a> s a)</p><div class="doc"><p>Build a new <code><a href="Data-STRef.html#t:STRef">STRef</a></code> in the current state thread
</p></div></div><div class="top"><p class="src"><a name="v:readSTRef" class="def">readSTRef</a> ::  <a href="Data-STRef.html#t:STRef">STRef</a> s a -&gt; <a href="Control-Monad-ST-Safe.html#t:ST">ST</a> s a</p><div class="doc"><p>Read the value of an <code><a href="Data-STRef.html#t:STRef">STRef</a></code>
</p></div></div><div class="top"><p class="src"><a name="v:writeSTRef" class="def">writeSTRef</a> ::  <a href="Data-STRef.html#t:STRef">STRef</a> s a -&gt; a -&gt; <a href="Control-Monad-ST-Safe.html#t:ST">ST</a> s <a href="../ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></p><div class="doc"><p>Write a new value into an <code><a href="Data-STRef.html#t:STRef">STRef</a></code>
</p></div></div><div class="top"><p class="src"><a name="v:modifySTRef" class="def">modifySTRef</a> ::  <a href="Data-STRef.html#t:STRef">STRef</a> s a -&gt; (a -&gt; a) -&gt; <a href="Control-Monad-ST-Safe.html#t:ST">ST</a> s <a href="../ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></p><div class="doc"><p>Mutate the contents of an <code><a href="Data-STRef.html#t:STRef">STRef</a></code>
</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>