On Tue, 15 Mar 2005, Nicola Whitehead wrote:

Hi folks,

I have a parser problem. I have a basic calculator program (Graham Hutton's 
from Nottingham) which contains the following code:

-- Define a parser to handle the input
expr :: Parser Int
expr = do t <- term
             do symbol "+"
                  e <- expr
                  return (t + e)
         +++ return t

I assume that the nested 'do' (before 'symbol') is too much. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to