-
Notifications
You must be signed in to change notification settings - Fork 5
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
[Issue 4] Incremental parsing for CSV with Headers #22
base: master
Are you sure you want to change the base?
Conversation
Hey @cptrodolfox After some thought, I see this doesn't really solve #4. I'm a bit consufed on the state of Megaparsec for incremental parsing. I see in the Changelog it's mentioned that:
This was for version 4.4.0 which was relesed on Feb 2016. However, I later noticed this issue on Megaparsec and it seems:
Therefore, I assume we won't actually have an easy way to solve #4 at the moment. I'll take a look at it later to be 100% sure if that is an impossible issue to fix for now. |
Hey @cptrodolfox I think a possible solution would be what @mrkkrp suggested here:
I think that could be a possible option. Nevertheless, I would prefer to implement it in a separated library (e.g. |
Hey @CristhianMotoche , sorry for the late reply. I think that a better approach is to see how does https://hackage.haskell.org/package/cassava-0.5.3.0/docs/src/Data.Csv.Incremental.html#Parser |
Hey @cptrodolfox Sorry for the late reply as well.
That was my approach at first. Therefore, we cannot have an incremental parsing like the one of |
Hey @cptrodolfox I've been trying to replicate something similar to |
It solves part of #4. I'll add the changes 'incrementally' (pun intended).
Changes:
decodeHeader
TODO: