svfactor: Syntax-preserving CSV manipulation
svfactor is a library for parsing, manipulating, and printing CSV and similar formats (such as PSV, TSV, and many more).
svfactor retains all syntactic information including newlines, and provides lenses, prisms, and traversals to query and manipulate this structure. This should make it useful for writing custom CSV transformations and sanitisation tools. For example, one could easily use it to rewrite all CRLF newlines to LF. It also extends RFC4180 by allowing optional spacing surrounding fields.
svfactor's parser is exposed so you can use it independently and printing is similarly standalone.
Please note that there are known performance problems with svfactor.
Examples:
Handling multiple logical documents in one file: Concat.hs
Fixing inconsistent formatting with lenses: Requote.hs
Modules
[Index]
- Data
- Data.Svfactor
- Data.Svfactor.Parse
- Data.Svfactor.Print
- Structure
- Data.Svfactor.Syntax
- Text
- Vector
- Data.Svfactor
Downloads
- svfactor-0.1.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
Versions [RSS] | 0.1 |
---|---|
Change log | changelog.md |
Dependencies | attoparsec (>=0.12.1.4 && <0.14), base (>=4.7 && <5), bifunctors (>=5.1 && <6), bytestring (>=0.9.1.10 && <0.11), charset (>=0.3 && <0.4), deepseq (>=1.1 && <1.5), lens (>=4 && <5), parsec (>=3.1 && <3.2), parsers (>=0.12 && <0.13), semigroupoids (>=5 && <6), semigroups (>=0.18 && <0.20), text (>=1.0 && <1.3), transformers (>=0.2 && <0.6), trifecta (>=1.5 && <2.2), utf8-string (>=1 && <1.1), vector (>=0.10 && <0.13) [details] |
Tested with | ghc ==7.8.4, ghc ==7.10.3, ghc ==8.0.2, ghc ==8.2.2, ghc ==8.4.3 |
License | BSD-3-Clause |
Copyright | Copyright (c) 2018, Commonwealth Scientific and Industrial Research Organisation (CSIRO) ABN 41 687 119 230. |
Author | George Wilson |
Maintainer | george@qfpl.io |
Revised | Revision 1 made by qfpl at 2019-09-22T09:04:26Z |
Category | CSV, Text, Web |
Home page | https://github.com/qfpl/svfactor |
Bug tracker | https://github.com/qfpl/svfactor/issues |
Source repo | head: git clone git@github.com/qfpl/svfactor.git |
Uploaded | by qfpl at 2018-07-19T06:33:26Z |
Distributions | |
Reverse Dependencies | 1 direct, 1 indirect [details] |
Downloads | 866 total (6 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2018-07-19 [all 1 reports] |