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

cast: Dynamic type cast failed. Expected: String. Actual: Nil #186

Closed reactormonk closed 4 years ago

reactormonk commented 4 years ago

I've got a CSV which has an empty string in its header:

"","term","estimate","std.error","statistic","p.value"

Which makes cassava bail out:

cast: Dynamic type cast failed. Expected: String. Actual: Nil

IMO cassava should generate an empty String as header here.

reactormonk commented 4 years ago

Wrong library.