cassava icon indicating copy to clipboard operation
cassava copied to clipboard

A CSV parsing and encoding library optimized for ease of use and high performance

Results 63 cassava issues
Sort by recently updated
recently updated
newest added

In almost every program I use `cassava` with, I have this definition: ``` parse :: [Map.Map T.Text T.Text] parse xs = either error (V.toList . snd) (CSV.decodeByName xs :: Either...

enhancement

In my (internal) codebase, I've just written this type: ```haskell -- | Try parsing a value. If it fails, record the error message. newtype Try a = Try { tryValue...

It would be nice to be able to skip record (when parsing) like blank line, comment etc ... I tried using `mzero` for that, but it's equivalent to `fail` which...

Currently, decode returns `FromRecord a => Either String a`. This is suboptimal, because some error messages include the row that failed - and if that row is utf-8 encoded and...

As reported in https://github.com/begriffs/postgrest/issues/691 > Lots of tools that generate CSV files add a trailing newline, so this behavior tends to be frustrating. I can work around it by using...

More a discussion point than anything else. If we read a CSV file using `FromNamedRecord`, should the lookups of column names be caseless? If so, we'd probably want to use...

It seems from the documentation that there's no way to directly `encode` the [`Csv` type](http://hackage.haskell.org/package/cassava-0.4.5.1/docs/Data-Csv.html#t:Csv), and instead I have to generate a list first. This looks weird, because `Csv` type...

question

I was wondering what the current status is for implementing space-delimited data decoding. From what I can tell, the original discussion of this issue was at #14, then a pull...

I'm not sure why this is missing but is there a reason for why this is missing?