[Haskell-beginners] Baffled by Parsec

Colin Paul Adams colin at colina.demon.co.uk
Sun Feb 22 02:23:37 EST 2009


>>>>> "Daniel" == Daniel Fischer <daniel.is.fischer at web.de> writes:

Thanks.

In fact all I need is:

parse_integer :: Parser Int
parse_integer = do
  digits <- many1 digit
  let n = read digits
  return n

as the format does not permit a sign.

What I was missing was digits. Where does it come from? I can't find
it with Hoggle.
-- 
Colin Adams
Preston Lancashire


More information about the Beginners mailing list