<div>Hello -</div>
<div> </div>
<div>I just a day or so ago downloaded Hakell and am playing around with it, and I came upon this problem with WinGHCi:</div>
<div> </div>
<div>I am able to enter a multi-line "do" statement that works if I use brackets and semi-colon like so:</div>
<div> </div>
<div>Prelude> :{<br>Prelude| let main2 = do {<br>Prelude| putStrLn "Please enter your name: "; <br>Prelude| name <- getLine;<br>Prelude| putStrLn ("Hello, " ++ name ++ ", how are you?") }<br>
Prelude| :}<br>Prelude> main2<br>Please enter your name: <br>CT<br>Hello, CT, how are you?<br>Prelude> </div>
<div> </div>
<div>Note there is no indentation. This makes sense to me because the :{ :} just take all the lines in between and make it one line.</div>
<div> </div>
<div>But it seems to me to be IMPOSSIBLE to input this into WinGHCi using indentation like most of the code samples seem to do.</div>
<div> </div>
<div>Should I just be satisfied that it works using brackets/ semi-colons? Or is there something obvious that I am missing that allows for indentation?</div>
<div> </div>
<div>Thanks in advance. It's issues lik this that keep me up into the depths of night.</div>
<div> </div>
<div>Best Regards,</div>
<div> </div>
<div>Chris </div>