Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

updatePosChar does not increment line number like doccumentation says #133

Closed
emmabastas opened this issue Jul 6, 2021 · 0 comments
Closed

Comments

@emmabastas
Copy link

emmabastas commented Jul 6, 2021

EDIT: Duplicate of #129. Should have looked through the issues properly before opening this one, sorry..

The documentation for Text.Parsec.Pos.updatePosChar states that If the character is a newline ('\n') or carriage return ('\r') the line number is incremented by 1. From looking at the implementation it is clear that only newlines increments line number, whereas carriage return is treated as a normal character

I do not know what the correct behavior would be, but this seams to me like a documentation-implementation missmatch.

Thank you for you time, have a lovely day 🌤️

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant