title: parse error on input '->' when using case
body: <p>I'm learning haskell by going through learn you a haskell for great good and one of the functions in the tutorials doesn't seem to compile. I can't figure out why, I thought it might be the indenting but it doesn't seem to make a difference. Most of the SE questions seems to be referring to the ghci and trying to set variables.</p>
  
  <pre><code>describeList :: [a] -&gt; String
  describeList xs = "The list is " ++ case xs of [] -&gt; "empty."
                                                 [x] -&gt; "a singleton list."
                                                 xs -&gt; "a longer list."
  </code></pre>
  
  <p>The error I get is:</p>
  
  <pre><code>describeList.hs:4:95: parse error on input '-&gt;'
  Failed, modules loaded: none.
  </code></pre>