-
Notifications
You must be signed in to change notification settings - Fork 1
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
Streaming support for Data.Text #3
Comments
Caveat: I am one of the maintainers of this package but not the original author. I imagine that Overall I'm not against
|
Yes, I understand that Text has an additional decoding step with regards to ByteString. However, I do not want to handle decoding of Unicode characters (UTF-8) in my parser. I was thinking to basically copy Data.Attoparsec.ByteString.Streaming into a new module Data.Attoparsec.Text.Streaming and modify the bits needed. However, that will increase the maintenance to basically two almost identical modules. However, I think this is the same approach as taken in Attoparsec where Data.Attoparsec.ByteString and Data.Attoparsec.Text have some duplicate code. |
My guess is that the |
Aah, you're right of course. We're missing a lot of functionality to handle I guess I'm going to use |
I played a little bit more with Attoparsec and it's Text parsers in combination with Streaming, and I came up with the following solution: |
The code looks to do what's advertised, and the exposed API matches the As for the deps, here's a look at their two dep graphs: Unioning the two, Okay, if you can put a PR together, we can then talk about docstrings, tests, performance comparisons, etc. Overall I think this will be a good addition :) Thank you for sticking with it. |
OK, thank you for the feedback. I will have a stab at this! |
Would it be possible to add streaming support for Data.Attoparsec.Text?
If so, would you accept patches for Text support to this library?
The text was updated successfully, but these errors were encountered: