[Haskell-beginners] Baffled by Parsec

Colin Paul Adams colin at colina.demon.co.uk
Sat Feb 21 15:04:21 EST 2009

The tutorials I've found don't tell me what I want to know :-(

I have lines that begin with an integer, then white-space, and then
further structure to the end-of-line.

So for a starter, could you show me how to write a parser for the
integer (returning an Int), and how to combine it with a parser for
the rest of the line (take that as written - it isn't, but I'll try to
do that myself given such a kick-start).

Colin Adams
Preston Lancashire

More information about the Beginners mailing list