Integrate binary operator signatures.

This commit is contained in:
Kei Hibino 2013-05-17 18:40:55 +09:00
parent a7e1778b31
commit 2711df6c0b

View File

@ -53,38 +53,21 @@ defineBinOp op a b = word . unwords $ [a, b] `sepBy'` op
as :: Keyword -> Keyword -> Keyword
as = defineBinOp AS
(<.>) :: Keyword -> Keyword -> Keyword
(<.>) = defineBinOp' "."
(<.>) = defineBinOp' "."
(.||.) :: Keyword -> Keyword -> Keyword
(.||.) = defineBinOp "||"
(.=.) :: Keyword -> Keyword -> Keyword
(.=.) = defineBinOp "="
(.<.) :: Keyword -> Keyword -> Keyword
(.<.) = defineBinOp "<"
(.<=.) :: Keyword -> Keyword -> Keyword
(.=.) = defineBinOp "="
(.<.) = defineBinOp "<"
(.<=.) = defineBinOp "<="
(.>.) :: Keyword -> Keyword -> Keyword
(.>.) = defineBinOp ">"
(.>=.) :: Keyword -> Keyword -> Keyword
(.>.) = defineBinOp ">"
(.>=.) = defineBinOp ">="
(.<>.) :: Keyword -> Keyword -> Keyword
(.<>.) = defineBinOp "<>"
and = defineBinOp AND
or = defineBinOp OR
in' = defineBinOp IN
and :: Keyword -> Keyword -> Keyword
and = defineBinOp AND
or :: Keyword -> Keyword -> Keyword
or = defineBinOp OR
in' :: Keyword -> Keyword -> Keyword
in' = defineBinOp IN
(<.>), (.||.), (.=.), (.<.), (.<=.), (.>.), (.>=.), (.<>.), and, or, in'
:: Keyword -> Keyword -> Keyword
infixr 5 .||.
infixr 4 .=., .<., .<=., .>., .>=., .<>.