-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Lightweight CSV parser/emitter based on ReadP -- -- Parses and emits tables of strings formatted according to RFC 4180, -- "The common Format and MIME Type for Comma-Separated Values (CSV) -- Files". Has no dependencies on parsec or any libraries other than -- base. @package readcsv @version 0.1.1 -- | Implementation of RFC 4180-compliant CSV parser and emitter. Works -- with both LF (Unix) and CRLF (DOS) linebreaks and allows -- varianble-length records. The header line (if one is used) is the -- first item in the parsed list, and can be separated with a pattern -- match. module Text.Read.CSV -- | Parse CSV from a string. readCSV :: String -> Maybe [[String]] -- | Emit CSV, escaping fields as necessary. Uses Unix linebreaks and a -- trailing newline. writeCSV :: [[String]] -> String -- | Emit CSV with CRLF line breaks ans no trailing newline, as specified -- by RFC 4180. writeCSVstrict :: [[String]] -> String -- | ReadP parser for CSV. csvTableP :: ReadP [[String]]