On 2/15/07, Rob Hoelz <[EMAIL PROTECTED]> wrote:
When I define a function and I use do to string functions together, how
does it know when my list of functions has come to an end?  For example:

foo = do
    bar
    baz
    other_func
bar = ...

How does it know to stop at other_func?

The "offside rule". Bar starts on the same column as foo so it's a new
definition rather than belonging to foo.

--
Sebastian Sylvan
+46(0)736-818655
UIN: 44640862
_______________________________________________
Haskell mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to