
15 Mar
2005
15 Mar
'05
10:32 a.m.
On Tue, 15 Mar 2005, Nicola Whitehead wrote:
Curiouser and curiouser...
expr :: Parser Int expr = do t <- term do symbol "+" e <- expr return (t + e) +++ return t
solves the undefined variable problem but introduces a new 'Last operator in do {...} must be an expression' error, which then disappears if I explicitly return e
the nested 'do' is still there ...