title: How to nest let statements in Haskell?
body: <p>I'm trying to nest a couple let statements, but I'm getting syntax errors that don't make sense to me. I'm really new to Haskell programming so I'm sure it's something I just don't understand (probably having to do with the spacing). I understand that let and in must be in the same column.</p>
  
  <p>Why is it that:</p>
  
  <pre><code>aaa = let y = 1+2
            z = 4+6
        in y+z
  </code></pre>
  
  <p>Works perfectly fine, whereas</p>
  
  <pre><code>aaa = let y = 1+2
            z = 4+6
            in let f = 3
                   e = 3
               in e+f
  </code></pre>
  
  <p>gives me the error: "Syntax error in expression (unexpected `=')"</p>