On Sat, 5 Jan 2013, Renick Bell wrote:

You can do multiline evaluation in ghci with regular indentation
(without internal braces) by preceding and following up your code like
this:

Prelude> :{
Prelude| do  putStrLn "first line"
Prelude|     putStrLn "second line"
Prelude| :}
first line
second line
Prelude>

Cool! I was not aware of this GHCi feature.

_______________________________________________
haskell-art mailing list
[email protected]
http://lists.lurk.org/mailman/listinfo/haskell-art

Reply via email to