
9 Dec
2007
9 Dec
'07
2:59 a.m.
On Dec 9, 2007 12:42 AM, Brandon S. Allbery KF8NH
I neglected to say the proper indentation:
test = do x <- item item -- note, indented to match the token after the "do" y <- item return (x,y)
That is the best thing to do. If you don't like the identation rule, you may also use explicit semicolons as in test = do {x <- item; item; y <- item; return (x,y)} or maybe test = do {x <- item; item; y <- item; return (x,y)} or even test = do { x <- item; item ; y <- item ; return (x,y)} Of course, in the last example you lost all the legibility of your code, but it compiles =). HTH, -- Felipe.