sql-words-0.1.6.5: SQL keywords data constructors into OverloadedString
Copyright2013 Kei Hibino
LicenseBSD3
Maintainerex8k.hibino@gmail.com
Stabilityexperimental
Portabilityunknown
Safe HaskellSafe-Inferred
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
Monoid Keyword Source #

Keyword default concatenation separate by space.

Instance details

Defined in Language.SQL.Keyword.Internal.Type

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

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

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

Eq Keyword Source # 
Instance details

Defined in Language.SQL.Keyword.Internal.Type

Methods

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

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

data DString Source #

Diff String type for low-cost concatenation.

Instances

Instances details
Monoid DString Source # 
Instance details

Defined in Language.SQL.Keyword.Internal.Type

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

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

Eq DString Source # 
Instance details

Defined in Language.SQL.Keyword.Internal.Type

Methods

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

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

word :: String -> Keyword Source #

Make Keyword from String

wordShow :: Keyword -> String Source #

Show Keyword

unwordsSQL :: [Keyword] -> String Source #

Concatenate keywords into String like unwords