-
Notifications
You must be signed in to change notification settings - Fork 0
/
Eta-Prelude-Classes-Ord.html
22 lines (22 loc) · 3.22 KB
/
Eta-Prelude-Classes-Ord.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!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>Eta.Prelude.Classes.Ord</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Eta-Prelude-Classes-Ord.html");};
//]]>
</script></head><body class="no-frame"><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 empty"> </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">Eta.Prelude.Classes.Ord</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>The <code>Ord</code> class defines ordering</p><p>A helper datatype exists to denote the <code>Ordering</code></p><pre class="screen"><code class="prompt">>>> </code><strong class="userinput"><code>compare 1 2
</code></strong>LT
<code class="prompt">>>> </code><strong class="userinput"><code>compare 2 1
</code></strong>GT
<code class="prompt">>>> </code><strong class="userinput"><code>compare 2 2
</code></strong>EQ
<code class="prompt">>>> </code><strong class="userinput"><code>1 < 2
</code></strong>True
<code class="prompt">>>> </code><strong class="userinput"><code>1 > 2
</code></strong>False
<code class="prompt">>>> </code><strong class="userinput"><code>1 >= 2
</code></strong>False
<code class="prompt">>>> </code><strong class="userinput"><code>1 <= 2
</code></strong>True
</pre></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:largestOf">largestOf</a> :: Ord a => a -> a -> a</li><li class="src short"><a href="#v:leastOf">leastOf</a> :: Ord a => a -> a -> a</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a id="v:largestOf" class="def">largestOf</a> :: Ord a => a -> a -> a <a href="#v:largestOf" class="selflink">#</a></p><div class="doc"><p>Returns the largest of the two arguments</p><pre class="screen"><code class="prompt">>>> </code><strong class="userinput"><code>largestOf 1 2
</code></strong>2
</pre></div></div><div class="top"><p class="src"><a id="v:leastOf" class="def">leastOf</a> :: Ord a => a -> a -> a <a href="#v:leastOf" class="selflink">#</a></p><div class="doc"><p>Returns the least of the two arguments</p><pre class="screen"><code class="prompt">>>> </code><strong class="userinput"><code>leastOf 1 2
</code></strong>1
</pre></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.4</p></div></body></html>