sv-0.1: 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

Text.Quote

Description

A sum type for quote characters

Synopsis

Documentation

data Quote Source #

A sum type for quote characters. Either single or double quotes.

Constructors

SingleQuote 
DoubleQuote 

quoteChar :: Prism' Char Quote Source #

Convert a Quote to the Char it represents.

quoteToString :: IsString a => Quote -> a Source #

Convert a Quote to a String. Since this uses IsString, it works for other data types, like Text or ByteString.