svfactor-0.1: Syntax-preserving CSV manipulation

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

Data.Svfactor.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 
Instances
Eq Quote Source # 
Instance details

Defined in Data.Svfactor.Text.Quote

Methods

(==) :: Quote -> Quote -> Bool #

(/=) :: Quote -> Quote -> Bool #

Ord Quote Source # 
Instance details

Defined in Data.Svfactor.Text.Quote

Methods

compare :: Quote -> Quote -> Ordering #

(<) :: Quote -> Quote -> Bool #

(<=) :: Quote -> Quote -> Bool #

(>) :: Quote -> Quote -> Bool #

(>=) :: Quote -> Quote -> Bool #

max :: Quote -> Quote -> Quote #

min :: Quote -> Quote -> Quote #

Show Quote Source # 
Instance details

Defined in Data.Svfactor.Text.Quote

Methods

showsPrec :: Int -> Quote -> ShowS #

show :: Quote -> String #

showList :: [Quote] -> ShowS #

NFData Quote Source # 
Instance details

Defined in Data.Svfactor.Text.Quote

Methods

rnf :: Quote -> () #

AsQuote Quote Source # 
Instance details

Defined in Data.Svfactor.Text.Quote

class AsQuote r where Source #

Classy prisms for Quote

Minimal complete definition

_Quote

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.