<div dir="ltr">I've got this in an Emacs org-mode code block:<div><br></div><div>#+begin_src haskell :results output<br>doubleSmallNumber4 x =<br>  if x > 0<br>    then x<br>    else x * 2<br>#+end_src<br></div><div><br></div><div>but when I try to run it (with C-c C-c) I get</div><div><br></div><div>...</div><div>Prelude> doubleSmallNumber4 x =<br>  if x > 0<br>    then x<br>    else x * 2<br>"org-babel-haskell-eoe"<br><br><interactive>:19:23: error:<br>    parse error (possibly incorrect indentation or mismatched brackets)<br>Prelude> <br><interactive>:20:11: error:<br>    parse error (possibly incorrect indentation or mismatched brackets)<br>Prelude> <br><interactive>:21:5-8: error: parse error on input ‘then’<br>Prelude> <br><interactive>:22:5-8: error: parse error on input ‘else’<br>Prelude> "org-babel-haskell-eoe"<br></div><div>...</div><div><br></div><div>I can run</div><div><br></div><div>#+begin_src haskell<br>tripleMe x = x + x + x<br>#+end_src<br></div><div><br></div><div>just fine though -- which means I've done something right with my Emacs init. The REPL started is 8.6.3 stack-ghci. I've formatted with the org-mode C-c '</div><div><br></div><div>LB</div><div><br></div><div><br></div><div><br></div><div><br></div></div>