[Issue 4] Incremental parsing for CSV with Headers#22
[Issue 4] Incremental parsing for CSV with Headers#22CristhianMotoche wants to merge 5 commits intomasterfrom
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:
decodeHeaderTODO: