mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-11-29 06:37:03 +03:00
Integrate signature of binary operators.
This commit is contained in:
parent
2711df6c0b
commit
b59e5586fb
@ -50,9 +50,6 @@ defineBinOp' op a b = concat' $ [a, b] `sepBy'` op
|
||||
defineBinOp :: Keyword -> Keyword -> Keyword -> Keyword
|
||||
defineBinOp op a b = word . unwords $ [a, b] `sepBy'` op
|
||||
|
||||
as :: Keyword -> Keyword -> Keyword
|
||||
as = defineBinOp AS
|
||||
|
||||
(<.>) = defineBinOp' "."
|
||||
|
||||
(.||.) = defineBinOp "||"
|
||||
@ -62,11 +59,12 @@ as = defineBinOp AS
|
||||
(.>.) = defineBinOp ">"
|
||||
(.>=.) = defineBinOp ">="
|
||||
(.<>.) = defineBinOp "<>"
|
||||
as = defineBinOp AS
|
||||
and = defineBinOp AND
|
||||
or = defineBinOp OR
|
||||
in' = defineBinOp IN
|
||||
|
||||
(<.>), (.||.), (.=.), (.<.), (.<=.), (.>.), (.>=.), (.<>.), and, or, in'
|
||||
(<.>), (.||.), (.=.), (.<.), (.<=.), (.>.), (.>=.), (.<>.), as, and, or, in'
|
||||
:: Keyword -> Keyword -> Keyword
|
||||
|
||||
infixr 5 .||.
|
||||
|
Loading…
Reference in New Issue
Block a user