title: Haskell - Max number in a list
body: <p>I want to find the maximum integral value in a list of integers. The following is my code -</p>
  
  <pre><code>maximum :: [Int] -&gt; Int
  maximum [x] = x
  maximum (x:xs) =
   | (maximum xs) &gt; x = maximum xs
   | otherwise = x
  </code></pre>
  
  <p>I do NOT want to use the in-built function max. So, I have NOT used :
  maximum (x:xs) = max x (maximum xs) </p>
  
  <p>Why is the code not executing ?</p>