Simple example using Parsec (was: [Haskell-cafe] Rethinking O O idioms)

Bayley, Alistair Alistair_Bayley at
Thu Sep 30 06:36:57 EDT 2004

Sure. Learning Parsec took me a few hours, whereas John's parsing task might
be done in much less time, if it's simple enough. OTOH, there's value in
being able to use Parsec, so it's a good excuse to learn.

> -----Original Message-----
> From: Graham Klyne [mailto:GK at] 
> Sent: 30 September 2004 10:34
> To: Bayley, Alistair; 'John Goerzen'; haskell-cafe at
> Subject: Simple example using Parsec (was: [Haskell-cafe] 
> Rethinking OO idioms)
> At 09:01 30/09/04 +0100, Bayley, Alistair wrote:
> >Ben suggested using Parsec for reading the config file. 
> Parsec is a fine
> >library, but there is a learning curve, and you might find 
> it quicker to do
> >the parsing yourself, if it's very simple. Your call.
> Hmmm... Parsec *can* be simple too.  Here's one I did earlier:
> #g

Confidentiality Note: The information contained in this 
message, and any attachments, may contain confidential 
and/or privileged material. It is intended solely for the 
person(s) or entity to which it is addressed. Any review, 
retransmission, dissemination, or taking of any action in 
reliance upon this information by persons or entities other 
than the intended recipient(s) is prohibited. If you received
this in error, please contact the sender and delete the 
material from any computer.

More information about the Haskell-Cafe mailing list