mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-11-29 14:45:51 +03:00
Integrate binary operator signatures.
This commit is contained in:
parent
a7e1778b31
commit
2711df6c0b
@ -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 .=., .<., .<=., .>., .>=., .<>.
|
||||
|
Loading…
Reference in New Issue
Block a user