haskell-hvr / cassava

A CSV parsing and encoding library optimized for ease of use and high performance
http://hackage.haskell.org/package/cassava
BSD 3-Clause "New" or "Revised" License
222 stars 105 forks source link

Export separate parsers for (non-)escaped fields #195

Closed zuqq closed 2 years ago

zuqq commented 3 years ago

This allows reusing these parsers without duplicating the check for double quotes.

I changed the name of the (previously private) function unescapedField to nonEscapedField in order to match RFC 4180.

andreasabel commented 2 years ago

Thanks @zuqq, for the PR! Could you rebase your PR on the latest master so that CI can run on it? Would it be possible to add a test that demonstrates the use of nonEscapedField?

zuqq commented 2 years ago

I'm closing this because I don't think it's all that valuable, really.