On Sun, Jul 17, 2016 at 09:50:27AM -0700, Olivier Duhart wrote:
> is ther a way to get the line numbers at parsers level?Hi Olivier,
maybe you are looking forhttp://hackage.haskell.org/
package/parsec-3.1.11/docs/ Text-Parsec.html#v:getPosition (which is very simple and used mainly for error reporting) or you could
just keep track of `currLine` into a State of your choice (the 's' in
ParsecT s ...).
Does that help?
-F
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell- cafe
Only members subscribed via the mailman list are allowed to post.