title: Haskell and Ord
body: <p>I am trying to implement a simple min function that accepts two parameters &amp; returns True if the first must appear before the second in sorted order, False otherwise:</p>
  
  <pre><code>min :: a -&gt; a -&gt; Bool
  min a b = if a &lt; b then True else False
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>No instance for (Ord a)
  arising from a use of `&lt;'
  </code></pre>