[Haskell-beginners] Basic Parsec question

Zachary Turner divisortheory at gmail.com
Wed Apr 1 01:50:59 EDT 2009


On Tue, Mar 31, 2009 at 11:34 PM, Antoine Latter <aslatter at gmail.com> wrote:

> You should be able to use the function "parse" from the parsec package like
> so:
>
> > parse parseExp "name of source for error reporting" "(some lisp
> expression")
>
> The function "parse" returns a value of type (Either ParseError a),
> where in this case the type-var 'a' wil be a LispVal.
>
> Does that help?
>

That was perfect, thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20090401/215831d0/attachment.htm


More information about the Beginners mailing list