-
Notifications
You must be signed in to change notification settings - Fork 347
parse-error "Expecting then" "Expecting else" DoAndIfThenElse in indentation #884
New issue
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
Comments
Added a PR with a failing test |
This seems to be an instance of DoAndIfThenElse. |
@gracjan yeah, seems like it. All compilers support it now with no flags needed, so would be nice for haskell-mode to support it, since it feels not right when code compiles, while indentation fails to work. |
The way this extension is defined with this semicolons out of nowhere is super strange. How to make indentation use this syntax will require some ingenuity. |
Actually we have this reported already as #321. |
For this code:
when you press enter after "True" – you get an error:
let: No catch for tag: parse-error, "Expecting then"
The text was updated successfully, but these errors were encountered: