
21 Jun
2010
21 Jun
'10
1:44 p.m.
I think this would just require the lex layout rules already in place for do/let in GHC; my guess is that your example would work if the body were indented past the "r" of "rec".
for the record ...
t2 = do rec a <- getChar b <- f c c <- g b putChar c return b
f = return . (const 'a') g = return
eg.lhs:23:6: The last statement in a 'do' construct must be an expression Failed, modules loaded: none. so I suppose it is not so far from "recognising" the construct and yet too far!