[Haskell-cafe] Need help with learning Parsec

C K Kashyap ckkashyap at gmail.com
Mon Jul 23 04:11:20 CEST 2012

Thanks a lot Antonie and Simon.

On Mon, Jul 23, 2012 at 12:15 AM, Antoine Latter <aslatter at gmail.com> wrote:

> On Sun, Jul 22, 2012 at 11:00 AM, C K Kashyap <ckkashyap at gmail.com> wrote:
> > What's the function to access it?
> >
> The function 'runParser' returns either a result or a ParseError. You
> can extract the error position with the 'errorPos' function, and then
> you can extract the name of the file from the position with
> 'sourceName'.
> The the 'Show' instance of ParseError does this.
> Antoine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120723/3782896b/attachment.htm>

More information about the Haskell-Cafe mailing list