[Haskell-cafe] Problems with do notation

Bulat Ziganshin bulat.ziganshin at gmail.com
Thu Nov 22 06:32:50 EST 2007


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:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list