We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following piece of code:
foo = (even $ 5) || False
(valid)
Gets parsed to the same ast as:
foo = even $ 5 || False
(type error)
The text was updated successfully, but these errors were encountered:
This doesn't seem like an easy fix; the haskell parser is parsing the previous two pieces of code to this:
HsInfixApp (HsParen (HsInfixApp (HsVar (UnQual (HsIdent "even"))) (HsQVarOp (UnQual (HsSymbol "$"))) (HsLit (HsInt 5)))) (HsQVarOp (UnQual (HsSymbol "||"))) (HsCon (UnQual (HsIdent "False"))) HsInfixApp (HsInfixApp (HsVar (UnQual (HsIdent "even"))) (HsQVarOp (UnQual (HsSymbol "$"))) (HsLit (HsInt 5))) (HsQVarOp (UnQual (HsSymbol "||"))) (HsCon (UnQual (HsIdent "False")))
The resulting tree hierarchy does not to reflect the operator precedence, it seems that is accounted for at a later stage.
Sorry, something went wrong.
No branches or pull requests
The following piece of code:
(valid)
Gets parsed to the same ast as:
(type error)
The text was updated successfully, but these errors were encountered: