sql-words-0.1.4.1: Simple idea SQL keywords data constructor 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

Eq Keyword Source # 

Methods

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

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

Read Keyword Source # 
Show Keyword Source # 
IsString Keyword Source #

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

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

Methods

fromString :: String -> Keyword #

Monoid Keyword Source #

Keyword default concatination separate by space.

word :: String -> Keyword Source #

Make Keyword from String

unwordsSQL :: [Keyword] -> String Source #

Concatinate keywords into String like unwords