Haskell Indentation

Filed under: programming

For do blocks, all the lines in that block have to start at the same position. (via Haskell/Indentation) These are acceptable:

main = do
 first thing
 second thing
 
main =
 do
   first thing
   second thing

main =
 do first thing
    second thin