decode package:cassava

Efficiently deserialize CSV records from a lazy ByteString. If this fails due to incomplete or invalid input, Left msg is returned. Equivalent to decodeWith defaultDecodeOptions.
Efficiently deserialize CSV in an incremental fashion. Equivalent to decodeWith defaultDecodeOptions.
Efficiently deserialize CSV records in a streaming fashion. Equivalent to decodeWith defaultDecodeOptions.
Efficiently deserialize CSV records from a lazy ByteString. If this fails due to incomplete or invalid input, Left msg is returned. The data is assumed to be preceded by a header. Equivalent to decodeByNameWith defaultDecodeOptions.
Like decodeByName, but lets you customize how the CSV data is parsed.
Like decodeByNameWith, but lets you specify a parser function.
Like decode, but lets you customize how the CSV data is parsed.
Like decodeWith', but lets you specify a parser function.
Efficiently deserialize CSV in an incremental fashion. The data is assumed to be preceded by a header. Returns a HeaderParser that when done produces a Parser for parsing the actual records. Equivalent to decodeByNameWith defaultDecodeOptions.
Like decodeByName, but lets you customize how the CSV data is parsed.
Like decodeByNameWith, but lets you pass an explicit parser value instead of using a typeclass
Parse a CSV header in an incremental fashion. When done, the HeaderParser returns any unconsumed input in the second field of the DoneH constructor.
Like decodeHeader, but lets you customize how the CSV data is parsed.
Like decode, but lets you customize how the CSV data is parsed.
Like decodeWith, but lets you pass an explicit parser value instead of using a typeclass
Efficiently deserialize CSV in a streaming fashion. The data is assumed to be preceded by a header. Returns Left errMsg if parsing the header fails. Equivalent to decodeByNameWith defaultDecodeOptions.
Like decodeByName, but lets you customize how the CSV data is parsed.
Like decodeByNameWith, but lets you specify a parser function.
Like decode, but lets you customize how the CSV data is parsed.
Like decodeWith, but lets you specify a parser function.
Options that controls how data is decoded. These options can be used to e.g. decode tab-separated data instead of comma-separated data. To avoid having your program stop compiling when new fields are added to DecodeOptions, create option records by overriding values in defaultDecodeOptions. Example:
myOptions = defaultDecodeOptions {
decDelimiter = fromIntegral (ord '\t')
}
Decoding options for parsing CSV files.