mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-11-29 14:45:51 +03:00
Remove concrete unary operator.
This commit is contained in:
parent
6ad47d791f
commit
c184c96b1f
@ -25,7 +25,7 @@ module Language.SQL.Keyword.Concat (
|
||||
|
||||
(.||.),
|
||||
(.=.), (.<.), (.<=.), (.>.), (.>=.), (.<>.),
|
||||
and, or, not, in',
|
||||
and, or, in',
|
||||
|
||||
-- * Unary operator
|
||||
defineUniOp
|
||||
@ -124,10 +124,6 @@ or = defineBinOp OR
|
||||
defineUniOp :: Keyword -> Keyword -> Keyword
|
||||
defineUniOp op e = unwords' [op, e]
|
||||
|
||||
-- | Uni `NOT` operator for SQL boolean expression.
|
||||
not :: Keyword -> Keyword
|
||||
not e = unwords' [NOT, e]
|
||||
|
||||
-- | Binary `IN` operator for SQL.
|
||||
in' :: Keyword -> Keyword -> Keyword
|
||||
in' = defineBinOp IN
|
||||
|
@ -22,7 +22,7 @@ module Language.SQL.Keyword.ConcatString (
|
||||
|
||||
(.||.),
|
||||
(.=.), (.<.), (.<=.), (.>.), (.>=.), (.<>.),
|
||||
and, or, not, in',
|
||||
and, or, in',
|
||||
|
||||
-- * Unary operator
|
||||
defineUniOp
|
||||
@ -92,10 +92,6 @@ or = defineBinOp OR
|
||||
defineUniOp :: Keyword -> String -> String
|
||||
defineUniOp op e = unwords [wordShow op, e]
|
||||
|
||||
-- | Uni `NOT` operator for SQL boolean expression.
|
||||
not :: String -> String
|
||||
not e = unwords [wordShow NOT, e]
|
||||
|
||||
-- | Binary `IN` operator for SQL.
|
||||
in' :: String -> String -> String
|
||||
in' = defineBinOp IN
|
||||
|
Loading…
Reference in New Issue
Block a user