svfactor: Syntax-preserving CSV manipulation
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
Warnings:
- 'ghc-options: -O2' is rarely needed. Check that it is giving a real benefit and not just imposing longer compile times on your users.
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
Properties
Versions | 0.1, 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.19), text (>=1.0 && <1.3), transformers (>=0.2 && <0.6), trifecta (>=1.5 && <2.1), utf8-string (>=1 && <1.1), vector (>=0.10 && <0.13) [details] |
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 |
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:31:57Z |
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 (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees