Operator table cleanup, type signatures (no warnings!)
This commit is contained in:
parent
091d131e69
commit
903ae349b2
1 changed files with 6 additions and 3 deletions
|
@ -50,6 +50,11 @@ def = emptyDef{ commentStart = ""
|
||||||
, reservedNames = ["true", "false"]
|
, reservedNames = ["true", "false"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_parens :: ParsecT String u Identity a -> ParsecT String u Identity a
|
||||||
|
m_identifier :: ParsecT String u Identity String
|
||||||
|
m_reservedOp :: String -> ParsecT String u Identity ()
|
||||||
|
m_reserved :: String -> ParsecT String u Identity ()
|
||||||
|
m_whiteSpace :: ParsecT String u Identity ()
|
||||||
TokenParser{ parens = m_parens
|
TokenParser{ parens = m_parens
|
||||||
, identifier = m_identifier
|
, identifier = m_identifier
|
||||||
, reservedOp = m_reservedOp
|
, reservedOp = m_reservedOp
|
||||||
|
@ -74,10 +79,8 @@ table = [
|
||||||
Infix (m_reservedOp "->" >> return (Binary LogicalImplication)) AssocLeft
|
Infix (m_reservedOp "->" >> return (Binary LogicalImplication)) AssocLeft
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
Infix (m_reservedOp "=" >> return (Binary LogicalEquality)) AssocLeft,
|
||||||
Infix (m_reservedOp "<-->" >> return (Binary LogicalEquality)) AssocLeft
|
Infix (m_reservedOp "<-->" >> return (Binary LogicalEquality)) AssocLeft
|
||||||
],
|
|
||||||
[
|
|
||||||
Infix (m_reservedOp "=" >> return (Binary LogicalEquality)) AssocLeft
|
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue