sql-words-0.1.6.4: SQL keywords data constructors into OverloadedString
Copyright2013 Kei Hibino
LicenseBSD3
Maintainerex8k.hibino@gmail.com
Stabilityexperimental
Portabilityunknown
Safe HaskellSafe
LanguageHaskell2010

Language.SQL.Keyword.Type

Description

SQL keyword representation using Haskell data constructors.

Synopsis

Documentation

data Keyword Source #

Type represent SQL keywords.

Instances

Instances details
Eq Keyword Source # 
Instance details

Defined in Language.SQL.Keyword.Internal.Type

Methods

(==) :: Keyword -> Keyword -> Bool

(/=) :: Keyword -> Keyword -> Bool

Read Keyword Source # 
Instance details

Defined in Language.SQL.Keyword.Internal.Type

Methods

readsPrec :: Int -> ReadS Keyword

readList :: ReadS [Keyword]

readPrec :: ReadPrec Keyword

readListPrec :: ReadPrec [Keyword]

Show Keyword Source # 
Instance details

Defined in Language.SQL.Keyword.Internal.Type

Methods

showsPrec :: Int -> Keyword -> ShowS

show :: Keyword -> String

showList :: [Keyword] -> ShowS

IsString Keyword Source #

Keyword type with OverloadedString extension, can be involved same list with string literals.

selectFoo = [SELECT, "a, b, c", FROM, "foo"]
Instance details

Defined in Language.SQL.Keyword.Internal.Type

Methods

fromString :: String -> Keyword

Semigroup Keyword Source # 
Instance details

Defined in Language.SQL.Keyword.Internal.Type

Methods

(<>) :: Keyword -> Keyword -> Keyword

sconcat :: NonEmpty Keyword -> Keyword

stimes :: Integral b => b -> Keyword -> Keyword

Monoid Keyword Source #

Keyword default concatination separate by space.

Instance details

Defined in Language.SQL.Keyword.Internal.Type

data DString Source #

Diff String type for low-cost concatination.

Instances

Instances details
Eq DString Source # 
Instance details

Defined in Language.SQL.Keyword.Internal.Type

Methods

(==) :: DString -> DString -> Bool

(/=) :: DString -> DString -> Bool

Read DString Source # 
Instance details

Defined in Language.SQL.Keyword.Internal.Type

Methods

readsPrec :: Int -> ReadS DString

readList :: ReadS [DString]

readPrec :: ReadPrec DString

readListPrec :: ReadPrec [DString]

Show DString Source # 
Instance details

Defined in Language.SQL.Keyword.Internal.Type

Methods

showsPrec :: Int -> DString -> ShowS

show :: DString -> String

showList :: [DString] -> ShowS

Semigroup DString Source # 
Instance details

Defined in Language.SQL.Keyword.Internal.Type

Methods

(<>) :: DString -> DString -> DString

sconcat :: NonEmpty DString -> DString

stimes :: Integral b => b -> DString -> DString

Monoid DString Source # 
Instance details

Defined in Language.SQL.Keyword.Internal.Type

word :: String -> Keyword Source #

Make Keyword from String

wordShow :: Keyword -> String Source #

Show Keyword

unwordsSQL :: [Keyword] -> String Source #

Concatinate keywords into String like unwords