Efficient lazy parsers for CSV (comma-separated values).

Version on this page:0.5
LTS Haskell 15.14:0.5.1
Stackage Nightly 2020-05-26:0.5.1
Latest on Hackage:0.5.1

See all snapshots lazy-csv appears in

BSD-3-Clause licensed by Malcolm Wallace, Ian Lynagh
Maintained by Malcolm Wallace

Module documentation for 0.5

This version can be pinned in stack with:[email protected]:61c14c9bf3ffd278969df60750304776b42924ecfc518866690b5d9aa20eb855,1402
  • Text
    • Text.CSV
      • Text.CSV.Lazy
        • Text.CSV.Lazy.ByteString
        • Text.CSV.Lazy.String

The CSV format is defined by RFC 4180. These efficient lazy parsers (String and ByteString variants) can report all CSV formatting errors, whilst also returning all the valid data, so the user can choose whether to continue, to show warnings, or to halt on error. Valid fields retain information about their original location in the input, so a secondary parser from textual fields to typed values can give intelligent error messages.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
lazy-csv change log

<body bgcolor='#ffffff'>

<h1>lazy-csv change log</h1>

<h3>Release 0.5</h3>
<li> Bugfix when encountering CR-only line-endings.
<li> Bugfix when encountering multi-duplicate headers.

<h3>Release 0.4</h3>
<li> First public release.

<h3>Release 0.3</h3>
<li> Validation now reports duplicate headers
<li> De-duplicate headers when repairing an incorrect file.

<h3>Release 0.2</h3>
<li> Repair fields containing newlines.
<li> csvTableFull, adds padding to short rows.
<li> Export mkCSVField API.

<h3>Release 0.1</h3>
<li> Initial (non-public) release.

Depends on 2 packages(full list with versions):