Copyright | (C) CSIRO 2017-2018 |
---|---|
License | BSD3 |
Maintainer | George Wilson <george.wilson@data61.csiro.au> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Options to configure encoding
- data EncodeOptions = EncodeOptions {}
- class HasSeparator c => HasEncodeOptions c where
- class HasSeparator c where
- defaultEncodeOptions :: EncodeOptions
Documentation
data EncodeOptions Source #
These are options to configure encoding. A default is provided as
defaultEncodeOptions
.
EncodeOptions | |
|
class HasSeparator c => HasEncodeOptions c where Source #
Classy lenses for EncodeOptions
import Control.Lens defaultEncodeOptinons & quote .~ Just DoubleQuote & newline .~ LF
class HasSeparator c where Source #
Classy lens for Separator
defaultEncodeOptions :: EncodeOptions Source #
The default options for encoding.
The default is a CSV file with double-quotes, CRLF lines, no spacing around fields, and no terminating newline.