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
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 #

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

Read Keyword Source # 
Instance details

Defined in Language.SQL.Keyword.Internal.Type

Show Keyword Source # 
Instance details

Defined in Language.SQL.Keyword.Internal.Type

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.

word :: String -> Keyword Source #

Make Keyword from String

unwordsSQL :: [Keyword] -> String Source #

Concatenate keywords into String like unwords