svfactor
Version 0.1 revision 1 uploaded by qfpl.
Package meta
- Synopsis
- Syntax-preserving CSV manipulation
- Description
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
- Author
- George Wilson
- Bug reports
- https://github.com/qfpl/svfactor/issues
- Category
- CSV, Text, Web
- Copyright
- Copyright (c) 2018, Commonwealth Scientific and Industrial Research Organisation (CSIRO) ABN 41 687 119 230.
- Homepage
- https://github.com/qfpl/svfactor
- Maintainer
- george@qfpl.io
- Package URL
- n/a
- Stability
- n/a