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

Enable encoding by name with missing fields #219

Open lrworth opened 1 year ago

lrworth commented 1 year ago

A new EncodeOptions field encMissing determines what to do when a named field cannot be found. This enables encoding sparse data structures.

This is a breaking change because there are no longer reasonable Eq or Show instances for EncodeOptions.

Resolves #176.

andreasabel commented 1 year ago

Blocked on: