-
Notifications
You must be signed in to change notification settings - Fork 24
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
Initial clause is inserted in wrong place for functions with multiline type annotation. #72
Comments
We used to have this problem in |
Really, though, we should set up Idris's IDE protocol to tell the editor where it goes. Unfortunately, I don't have time for that right now. |
The vim mode (or rather, the version of the command which updates the file) does this in a differently hacky way, which is simply to put the clause on the next blank line. While this also produces odd results sometimes, at least the most common behaviour is less surprising. I agree that the right solution is for the protocol to say where to put it. Probably using file location information from the parser. |
thanks for reporting the issue @Dummer and thanks for giving me two alternatives @david-christiansen and @edwinb I'm happy to change this behaviour if it causes trouble or the compiler tells me where to put it :) |
If function has several lines of type annotation then generated initial clause for it should be inserted in the annotation's following line instead the middle of type annotation.
Now it is not.
For example:
after use ctrl+alt+a:
The text was updated successfully, but these errors were encountered: