title: Haskell - too few arguments
body: <p>I want to write a Haskell program that calculates the sum of numbers between 2 given numbers.
  I have the following code:</p>
  
  <pre><code>sumInt :: Int -&gt; Int -&gt; Int
  sumInt x y
     | x &gt; y = 0
     | otherwise = x + sumInt x+1 y
  </code></pre>
  
  <p>But when I compile it I get the following error:</p>
  
  <blockquote>
    <p>SumInt is applied to too few arguments.</p>
  </blockquote>
  
  <p>I don't understand what I'm doing wrong. Any ideas?</p>