haskell-hvr/cassava

csvWithHeader - avoiding partial function lookup?

Opened this issue · 1 comments

Is there some way to change the result type of csvWithHeader to avoid the possibility of using a partial function like (!) ?

Alternatively, am I making the wrong assumption that the result of (Header, Vector NamedRecord) implicitly asserts that the NamedRecords will always contain an entry for each header?

Feel free to close if you consider this outside of cassava's scope.