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

Eq Keyword 
Read Keyword 
Show Keyword 
IsString Keyword

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

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

Keyword default concatination separate by space.

data DString Source

Diff String type for low-cost concatination.

word :: String -> Keyword Source

Make Keyword from String

unwordsSQL :: [Keyword] -> String Source

Concatinate keywords into String like unwords