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

encodeRecord variant that does not append recordSep #216

Open adamgundry opened 1 year ago

adamgundry commented 1 year ago

I have an application where I wanted to encode a single record, quoting all the fields, but not attach a trailing newline. Data.Csv.Encoding.encodeRecord looks pretty much exactly what I want, but is isn't exposed. Data.Csv.Builder.encodeRecord is exposed, but it always appends the line separator.