Add header document. Add keyword 'IN' and binary operator.

This commit is contained in:
Kei Hibino 2013-05-16 18:23:08 +09:00
parent 046952f390
commit 497ccb1bac

View File

@ -8,6 +8,8 @@
-- Maintainer : ex8k.hibino@gmail.com
-- Stability : experimental
-- Portability : unknown
--
-- SQL keyword representation using Haskell data constructors.
module Language.SQL.Keyword (
Keyword (..),
@ -21,7 +23,7 @@ module Language.SQL.Keyword (
(.||.),
(.=.), (.<.), (.<=.), (.>.), (.>=.), (.<>.),
and, or,
and, or, in',
stringMap
) where
@ -54,7 +56,7 @@ data Keyword = SELECT | ALL | DISTINCT | ON
-- | (:+) | (:-) | (:*) | (:/)
| AND | OR | NOT
| IS | NULL
| IS | NULL | IN
-- | OPEN | CLOSE
@ -138,6 +140,9 @@ and = defineBinOp AND
or :: Keyword -> Keyword -> Keyword
or = defineBinOp OR
in' :: Keyword -> Keyword -> Keyword
in' = defineBinOp IN
infixr 5 .||.
infixr 4 .=., .<., .<=., .>., .>=., .<>.
infixr 3 `and`