Popularity
6.1
Declining
Activity
0.0
Stable
6
4
4

Monthly Downloads: 82
Programming language: Haskell
License: MIT License
Tags: Data     Streaming    
Latest version: v0.1.0.1

streaming-cassava alternatives and similar packages

Based on the "streaming" category.
Alternatively, view streaming-cassava alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of streaming-cassava or a related project?

Add another 'streaming' Package

README

streaming-cassava

Hackage Build Status

cassava support for the streaming ecosystem

This library allows you to easily stream CSV data in and out. You can do so using both "plain" record-based (with optional header support) or name-based (header required to determine ordering) encoding/decoding.

All encoding/decoding options are supported, it's possible to automatically add on default headers and you can even choose whether to fail on the first parse error or handle errors on a row-by-row basis.

Errors with readFile

A common use-case is to stream CSV-encoded data in from a file. You may be tempted to use readFile from streaming-bytestring to obtain the file contents, but if you do you're likely to run into exceptions such as hGetBufSome: illegal operation (handle is closed).

The recommended solution is to use the streaming-with package for the IO aspects. You can then write something like:

withBinaryFileContents \"myFile.csv\" $
  doSomethingWithStreamingCSV
  . 'decodeByName'