talira

CSV parsing and encoding for Haskell

open sourceBSD-3-Clausefree

cassava is a Haskell library for parsing and encoding RFC 4180 CSV data. It converts records by column index or by header name, through type classes with built-in instances for standard types and instances derived with GHC generics, and offers low-level bytestring builders, an incremental API and a streaming API that decodes in constant space. It was written by Johan Tibell and is maintained in the haskell-hvr organisation.

Problems it solves

  • read a CSV file into Haskell records
  • stream a large CSV file in constant memory in Haskell
  • write Haskell data out as CSV with headers

Features

  • RFC 4180 CSV parsing and encoding
  • index- and name-based record conversion
  • generic-derived instances
  • incremental and streaming APIs
  • bytestring builders