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

Add example of incremental, name based parsing #209

Closed MaxGabriel closed 2 years ago

MaxGabriel commented 2 years ago

There is already an example for indexed-based decoding, but not for name-based.

This also adds a salaries.csv file, which is used by the new code, but incidentally closes https://github.com/haskell-hvr/cassava/issues/208

MaxGabriel commented 2 years ago

Fwiw, I've never used the incremental CSV parsing stuff, so I'm mostly cargo-culting from the indexed based version and puzzling things out/playing type tetris. But, this compiles/runs, so that's a good sign

andreasabel commented 2 years ago

@MaxGabriel Why did you close the PR now?

andreasabel commented 2 years ago

ping @MaxGabriel