csv-conduit-0.7.1.0: A flexible, fast, conduit-based CSV parser library for Haskell.
Safe HaskellSafe
LanguageHaskell98

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.

Instances

Instances details
Eq CSVSettings Source # 
Instance details

Defined in Data.CSV.Conduit.Types

Methods

(==) :: CSVSettings -> CSVSettings -> Bool

(/=) :: CSVSettings -> CSVSettings -> Bool

Read CSVSettings Source # 
Instance details

Defined in Data.CSV.Conduit.Types

Methods

readsPrec :: Int -> ReadS CSVSettings

readList :: ReadS [CSVSettings]

readPrec :: ReadPrec CSVSettings

readListPrec :: ReadPrec [CSVSettings]

Show CSVSettings Source # 
Instance details

Defined in Data.CSV.Conduit.Types

Methods

showsPrec :: Int -> CSVSettings -> ShowS

show :: CSVSettings -> String

showList :: [CSVSettings] -> ShowS

Default CSVSettings Source # 
Instance details

Defined in Data.CSV.Conduit.Types

Methods

def :: CSVSettings #

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.