title: Parse error (possibly incorrect indentation or mismatched brackets) - Haskell
body: <p>It's silly, but I can not even solve the problem with spaces and tabs. Sometimes I think that the problem is not in me, but in Haskell. Why Python does not have the same problem?</p>
  
  <p>My code is:</p>
  
  <pre><code>lookups :: (Eq a) =&gt; a -&gt; [(a,b)] -&gt; [b]
  lookups x ys = do y &lt;- ys
                    if fst y == x then return (snd y)
  </code></pre>
  
  <p>I have a error: <code>parse error (possibly incorrect indentation or mismatched brackets)</code>. My code use only spaces.</p>