Lex Trotman wrote:
Yes, Haskell do syntax is different,
Yes, agreed.
do goes roughly where the : goes on a Python loop
Actually there are a number of syntactically valid ways to layout a do. Here are two:
functionName param = do x <- whatever
functionName param = do x <- whatever
Its the second one (and trying to place a <tab> after the 'do') which is causing the problems.
and the rest is indented like Python,
Well lets just say Haskell used significant leading whitespace, like Python.
Cheers, Erik