[Haskell-beginners] parsec question

David Virebayre dav.vire+haskell at gmail.com
Mon Jul 19 02:36:52 EDT 2010


On Mon, Jul 19, 2010 at 5:36 AM, Michael Mossey <mpm at alumni.caltech.edu> wrote:

> play :: Parser Command
> play = do char 'p'
>          vResult <- .. maybe a v, otherwise supply default value 0

A hint: The function "option" should be useful to you.

David.


More information about the Beginners mailing list