Cassava: A CSV parsing and encoding library
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:
>>>
Data.Csv.encode [("John",27),("Jane",28)]
"John,27\r\nJane,28\r\n"
Please refer to the documentation in Data.Csv and the included README for more usage examples.
[Skip to Readme]
Flags
Automatic Flags
Name | Description | Default |
---|---|---|
bytestring-lt-0_10_4 | bytestring < 0.10.4 | Enabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- Cassava-0.5.1.0.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.5.1.0 |
---|---|
Change log | CHANGES.md |
Dependencies | array (>=0.4 && <0.6), attoparsec (>=0.11.3.0 && <0.14), base (>=4.5 && <5), bytestring (>=0.9.2 && <0.11), bytestring-builder (>=0.10.8 && <0.11), containers (>=0.4.2 && <0.6), deepseq (>=1.1 && <1.5), fail (>=4.9 && <4.10), ghc-prim (>=0.2 && <0.3), hashable (<1.3), nats (>=1 && <1.2), Only (>=0.1 && <0.1.1), scientific (>=0.3.4.7 && <0.4), semigroups (>=0.18 && <0.19), text (<1.3), text-short (>=0.1 && <0.2), unordered-containers (<0.3), vector (>=0.8 && <0.13) [details] |
License | BSD-3-Clause |
Copyright | (c) 2012 Johan Tibell (c) 2012 Bryan O'Sullivan (c) 2011 MailRank, Inc. |
Author | Johan Tibell |
Maintainer | Taylor Fausak |
Revised | Revision 3 made by fozworth at 2018-02-19T19:45:58Z |
Category | Text, Web, CSV |
Home page | https://github.com/tfausak/cassava |
Bug tracker | https://github.com/tfausak/cassava/issues |
Source repo | head: git clone https://github.com/tfausak/cassava.git |
Uploaded | by fozworth at 2017-09-30T14:29:07Z |
Distributions | |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Downloads | 1276 total (1 in the last 30 days) |
Rating | 1.75 (votes: 2) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2017-09-30 [all 1 reports] |