[Haskell-cafe] sv library for your csv|psv|tsv

Tony Morris tonymorris at gmail.com
Tue Mar 6 22:13:42 UTC 2018


Hi everyone,
The Queensland Functional Programming Lab has released the sv library
for parsing, editing and calculating results based on * separated value
file formats such as CSV, PSV and TSV.

https://hackage.haskell.org/package/sv

This first release of the library is 6 months of work by the FP lab.

If you are familiar with the original argonaut[^1] library in scala or
purescript, you will know of the idea of codecs for converting a syntax
tree into your user-defined values. For example, taking a JSON data type
to your own Person data type. Some of these ideas have been adapted to
the aeson library. The sv library implements these same original ideas,
with corrections to a few of the original mistakes that we made in
argonaut. The sv library also retains the inverse law to parsing (write
. parse = id), so you can use the library for editing CSV|PSV|TSV files.
Characters such as whitespace, quotes, etc are retained in the syntax tree.

If there are any questions, please feel free to contact us
http://qfpl.io/contact

[^1]: http://argonaut.io/


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20180307/7a271fd7/attachment.sig>


More information about the Haskell-Cafe mailing list