sv-1.3: Encode and decode separated values (CSV, PSV, ...)

Copyright(C) CSIRO 2017-2018
LicenseBSD3
MaintainerGeorge Wilson <george.wilson@data61.csiro.au>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellSafe
LanguageHaskell2010

Data.Sv.Parse

Description

 
Synopsis

Documentation

data ParseOptions Source #

A ParseOptions informs the parser how to parse your file.

A default is provided as defaultParseOptions, seen below.

Constructors

ParseOptions 

Fields

  • _separator :: Separator

    Which separator does the file use? Usually this is comma, but it can also be pipe, or any other Word8 (Separator = Word8)

  • _headedness :: Headedness

    Whether there is a header row with column names or not.

Instances
HasSeparator ParseOptions Source # 
Instance details

Defined in Data.Sv.Parse

Methods

separator :: Lens' ParseOptions Separator

HasHeadedness ParseOptions Source # 
Instance details

Defined in Data.Sv.Parse

Methods

headedness :: Lens' ParseOptions Headedness

defaultParseOptions :: ParseOptions Source #

Default parsing options.

The default is a comma separator, with a header at the top of the file.

defaultSeparator :: Separator Source #

The default separator is comma.

defaultHeadedness :: Headedness Source #

The default is that a header is present.