@hackage / Cassava

A CSV parsing and encoding library

Version Deprecated package0.5.1.0

About

Metadata

  • Last updated , by fozworth
  • License BSD-3-Clause
  • Categories Web Development, Text Processing
  • Maintained by: Taylor Fausak

  • Lottery factor: 0

Links

Installation

This package has been deprecated in favour of

Tested Compilers

  1. 8.0.2
  2. 7.10.3

Package Flags

Use the -f option with cabal commands to enable flags

    bytestring-lt-0_10_4 (on by default)

    bytestring < 0.10.4

Readme

This is a fork of cassava that changes the problematic bytestring--LT-0_10_4 flag name to bytestring-LT-0_10_4. This allows the package to be built by Stack (as of version 1.5.1). See https://github.com/hvr/cassava/pull/155 for more information.

cassava is a library for parsing and encoding RFC 4180 compliant comma-separated values (CSV) data, which is a textual line-oriented format commonly used for exchanging tabular data.

cassava's API includes support for

  • Index-based record-conversion

  • Name-based record-conversion

  • Typeclass directed conversion of fields and records

  • Built-in field-conversion instances for standard types

  • Customizable record-conversion instance derivation via GHC generics

  • Low-level bytestring builders (see Data.Csv.Builder)

  • Incremental decoding and encoding API (see Data.Csv.Incremental)

  • Streaming API for constant-space decoding (see Data.Csv.Streaming)

Moreover, this library is designed to be easy to use; for instance, here's a very simple example of encoding CSV data:

>>>

Please refer to the documentation in Data.Csv and the included README for more usage examples.