title: Haskell Error: parse error on input `='
body: <p><strong>Specs</strong></p>
  
  <p>GHC 6.12.1</p>
  
  <p>Mac OS X 10.6.4 x64</p>
  
  <p>MacBook Pro</p>
  
  <p><strong>Problem</strong></p>
  
  <p>I'm having trouble using <code>let</code> syntax. The following code refuses to compile:</p>
  
  <pre><code>module Main where
  
  main = let x = 1
          y = 2
          z = 3
      in putStrLn $ "X = " ++ show x ++ "\nY = " ++ show y ++ "\nZ = " ++ show z
  </code></pre>
  
  <p>I tried tabbing in <code>y = 2</code> and <code>z = 3</code> even more. No dice.</p>
  
  <p><strong>(Undesirable) Solutions</strong></p>
  
  <p>The only way I've gotten the code to compile is either</p>
  
  <ol>
  <li>Replacing hard tabs with spaces.</li>
  <li>Replacing the <code>let</code> clause with a <code>where</code> clause.</li>
  </ol>