Sophie

Sophie

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

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.Unique</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-Unique.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</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.Unique</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Unique objects
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>An abstract interface to a unique symbol generator.
</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:Unique">Unique</a> </li><li class="src short"><a href="#v:newUnique">newUnique</a> :: <a href="System-IO.html#t:IO">IO</a> <a href="Data-Unique.html#t:Unique">Unique</a></li><li class="src short"><a href="#v:hashUnique">hashUnique</a> :: <a href="Data-Unique.html#t:Unique">Unique</a> -&gt; <a href="Data-Int.html#t:Int">Int</a></li></ul></div><div id="interface"><h1 id="g:1">Unique objects
</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:Unique" class="def">Unique</a>  </p><div class="doc"><p>An abstract unique object.  Objects of type <code><a href="Data-Unique.html#t:Unique">Unique</a></code> may be
 compared for equality and ordering and hashed into <code><a href="Data-Int.html#t:Int">Int</a></code>.
</p></div><div class="subs instances"><p id="control.i:Unique" class="caption collapser" onclick="toggleSection('i:Unique')">Instances</p><div id="section.i:Unique" class="show"><table><tr><td class="src"><a href="Data-Eq.html#t:Eq">Eq</a> <a href="Data-Unique.html#t:Unique">Unique</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Data-Ord.html#t:Ord">Ord</a> <a href="Data-Unique.html#t:Unique">Unique</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Data-Unique.html#t:Unique">Unique</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:newUnique" class="def">newUnique</a> :: <a href="System-IO.html#t:IO">IO</a> <a href="Data-Unique.html#t:Unique">Unique</a></p><div class="doc"><p>Creates a new object of type <code><a href="Data-Unique.html#t:Unique">Unique</a></code>.  The value returned will
 not compare equal to any other value of type <code><a href="Data-Unique.html#t:Unique">Unique</a></code> returned by
 previous calls to <code><a href="Data-Unique.html#v:newUnique">newUnique</a></code>.  There is no limit on the number of
 times <code><a href="Data-Unique.html#v:newUnique">newUnique</a></code> may be called.
</p></div></div><div class="top"><p class="src"><a name="v:hashUnique" class="def">hashUnique</a> :: <a href="Data-Unique.html#t:Unique">Unique</a> -&gt; <a href="Data-Int.html#t:Int">Int</a></p><div class="doc"><p>Hashes a <code><a href="Data-Unique.html#t:Unique">Unique</a></code> into an <code><a href="Data-Int.html#t:Int">Int</a></code>.  Two <code><a href="Data-Unique.html#t:Unique">Unique</a></code>s may hash to the
 same value, although in practice this is unlikely.  The <code><a href="Data-Int.html#t:Int">Int</a></code>
 returned makes a good hash key.
</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>