On Thu, 22 Nov 2007, Peter Verswyvelen wrote:

> worksFine =
>   if True
>   then putStrLn "True"
>   else putStrLn "False"
>
> worksNOT = do
>   if True
>   then putStrLn "True"
>   else putStrLn "False"
>
> worksAgain = do
>   if True
>     then putStrLn "True"
>     else putStrLn "False"
>
> Of course the worksFine function returns an IO action, so has different
> behavior, but I mean the indentation is different. Is this by design?


That's somehow related to:
  http://www.haskell.org/pipermail/haskell-prime/2006-October/001771.html
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to