title: Parse error on input 'if' when trying to use a condition inside a do block
body: <p>I have the following code and I already tried multiple ways to write this, but I can't make it work. What I need is to use an <code>if</code> condition inside a <code>do</code> block.</p>
  
  <pre><code>palin :: IO ()
  palin 
    = do line &lt;- getLine
         putStr line
         if True
           then putStr line
  </code></pre>
  
  <p>I changed the condition to true just to make it easier. I tried adding the <code>else</code> sentence, but I get the same.</p>