-
Notifications
You must be signed in to change notification settings - Fork 219
Forbid invalid codepoints #1104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Is these parser changes actually necessary to handle the tests for dhall-lang/dhall-lang#640? |
At least the |
@sjakobi: This change is necessary to pass the tests: https://github.com/dhall-lang/dhall-haskell/pull/1104/files#diff-281e7ffb783d37c08218e547d14115b2R499 The other changes are just pedantically following the standard, but not necessary |
Note that I disabled the I guess I'm not fully convinced that we should follow the standard this pedantically if it doesn't change Is there a measurable performance impact from the redundant |
@sjakobi: Yeah, you're right. It does have a measurable effect, so I'll get rid of those changes. On
On this branch:
|
... as suggested by @sjakobi It's not necessary (since the `text` package forbids invalid UTF8) and slows down performance as verified by the `dhall-parser` comment parsing benchmarks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that #1112 has landed, can you just re-enable the nonCharacter
test? Then, this should be good to go! 👍
... as standardized in dhall-lang/dhall-lang#640