cassava-0.5.3.0: A CSV parsing and encoding library
Safe Haskell None
Language Haskell2010

Data.Csv.Builder

Description

Low-level bytestring builders. Most users want to use the more type-safe Data.Csv.Incremental module instead.

Synopsis

Encoding single records and headers

encodeRecord :: ToRecord a => a -> Builder Source #

Encode a single record.

encodeNamedRecord :: ToNamedRecord a => Header -> a -> Builder Source #

Encode a single named record, given the field order.

encodeDefaultOrderedNamedRecord :: ( DefaultOrdered a, ToNamedRecord a) => a -> Builder Source #

Encode a single named record, using the default field order.

Encoding options

encodeHeaderWith :: EncodeOptions -> Header -> Builder Source #

Like encodeHeader , but lets you customize how the CSV data is encoded.

encodeRecordWith :: ToRecord a => EncodeOptions -> a -> Builder Source #

Like encodeRecord , but lets you customize how the CSV data is encoded.

encodeNamedRecordWith :: ToNamedRecord a => EncodeOptions -> Header -> a -> Builder Source #

Like encodeNamedRecord , but lets you customize how the CSV data is encoded.