
22 Nov
2007
22 Nov
'07
6:25 a.m.
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