[Haskell-cafe] parsec - source position information

Ozgur Akgun ozgurakgun at gmail.com
Thu Apr 7 17:31:35 CEST 2011


Thanks!

On 7 April 2011 16:27, Christopher Done <chrisdone at googlemail.com> wrote:

> On 7 April 2011 17:22, Ozgur Akgun <ozgurakgun at gmail.com> wrote:
>>
>> Is there a way to get source position[1] information from parsec while
>> defining a
>> parser? It surely knows about source positions, as they are used while
>> reporting a parsing error.
>>
>
>
> http://hackage.haskell.org/packages/archive/parsec/3.0.0/doc/html/Text-Parsec-Prim.html#v:getPosition
> <http://hackage.haskell.org/packages/archive/parsec/3.0.0/doc/html/Text-Parsec-Prim.html#v:getPosition>
>



-- 
Ozgur Akgun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110407/735c8acb/attachment.htm>


More information about the Haskell-Cafe mailing list