csv-conduit-0.7.3.0: A flexible, fast, conduit-based CSV parser library for Haskell.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.CSV.Conduit.Types

Synopsis

Documentation

data CSVSettings Source #

Settings for a CSV file. This library is intended to be flexible and offer a way to process the majority of text data files out there.

Constructors

CSVSettings 

Fields

  • csvSep :: !Char

    Separator character to be used in between fields

  • csvQuoteChar :: !(Maybe Char)

    Quote character that may sometimes be present around fields. If Nothing is given, the library will never expect quotation even if it is present.

defCSVSettings :: CSVSettings Source #

Default settings for a CSV file.

csvSep = ','
csvQuoteChar = Just '"'

type Row a = [a] Source #

A Row is just a list of fields

type MapRow a = Map a a Source #

A MapRow is a dictionary based on Map where column names are keys and row's individual cell values are the values of the Map.

type OrderedMapRow a = OMap a a Source #

An OrderedMapRow is a dictionary based on Ordered where column names are keys and row's individual cell values are the values of the OMap. Unlike MapRow, OrderedMapRow preserves the insertion ordering of columns. OrderedMapRow is a reasonable default in most cases.