Data.Csv

# Usage examples

## Encoding and decoding custom data types

### Index-based record conversion

### Name-based record conversion

# Treating CSV data as opaque byte strings

# Custom type conversions for fields

## Dealing with bad data

# Encoding and decoding

data HasHeader

decode

decodeByName

encode

encodeByName

encodeDefaultOrderedByName

class DefaultOrdered a

## Encoding and decoding options

data DecodeOptions

defaultDecodeOptions

decodeWith

decodeByNameWith

data EncodeOptions

data Quoting

defaultEncodeOptions

encodeWith

encodeByNameWith

encodeDefaultOrderedByNameWith

# Core CSV types

type Csv

type Record

type Field

type Header

type Name

type NamedRecord

# Type conversion

## Index-based record conversion

class FromRecord a

data Parser a

runParser

index

(.!)

unsafeIndex

class ToRecord a

record

data Only a

## Name-based record conversion

class FromNamedRecord a

lookup

(.:)

class ToNamedRecord a

namedRecord

namedField

(.=)

header

## Field conversion

class FromField a

class ToField a