Fix boolean parenthesis bug
parent
b1d2f65992
commit
1fbacda21b
|
@ -110,10 +110,10 @@ boolExprTerm :: ParsecT Void Text Data.Functor.Identity.Identity M.Bool
|
||||||
boolExprTerm =
|
boolExprTerm =
|
||||||
choice
|
choice
|
||||||
[ try (uncurry3 M.IntOrdCmp <$> intOrdCmpExpr),
|
[ try (uncurry3 M.IntOrdCmp <$> intOrdCmpExpr),
|
||||||
|
parens boolExpr,
|
||||||
uncurry3 M.IntEq <$> intEqExpr,
|
uncurry3 M.IntEq <$> intEqExpr,
|
||||||
M.Bool True <$ string "true" <* C.space,
|
M.Bool True <$ string "true" <* C.space,
|
||||||
M.Bool False <$ string "false" <* C.space,
|
M.Bool False <$ string "false" <* C.space
|
||||||
parens boolExpr
|
|
||||||
]
|
]
|
||||||
|
|
||||||
boolExpr :: ParsecT Void Text Data.Functor.Identity.Identity M.Bool
|
boolExpr :: ParsecT Void Text Data.Functor.Identity.Identity M.Bool
|
||||||
|
|
Reference in New Issue