Hello Peter,

Thursday, November 22, 2007, 11:19:20 AM, you wrote:

>  Of course the worksFine function returns an IO action, so has
> different behavior, but I mean the indentation is different. Is this by 
> design?

to be exact, Haskell "procedure" is just a function returning an
action. i recommend you to read http://haskell.org/haskellwiki/IO_inside

the exact reason is different layout rules of expressions and "do"
construct, as was already described


-- 
Best regards,
 Bulat                            mailto:[EMAIL PROTECTED]

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to