title: Couldn't match expected type `Int' with actual type [Int]
body: <p>I am writing a program that sums the numbers of a list up:</p>
  
  <pre><code>[2,3,4,5] = 14
  </code></pre>
  
  <p>I get an error when I compile it and I have no clue what the program wants:</p>
  
  <pre><code>getLimit :: [Int] -&gt; Int
  getLimit [] = 0
  getLimit [x] = sum [x]
  getLimit [y:yz] = y + getLimit yz
  </code></pre>
  
  <p>The error is: </p>
  
  <p><a href="http://i.imgur.com/G06noq4.jpg" rel="nofollow">http://i.imgur.com/G06noq4.jpg</a></p>
  
  <p>Thanks for any help in advance.</p>