-
-
Notifications
You must be signed in to change notification settings - Fork 369
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
Cleanup Development.IDE.CodeAction #3360
Cleanup Development.IDE.CodeAction #3360
Conversation
82cf824
to
3a835ad
Compare
3a835ad
to
975ef7a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. You're getting some hlint failures for forbidden functions since CodeAction.hs
is whitelisted for historical reasons. If you feel like fixing those that would be great, otherwise you can add the new files to the whitelist in hlint.yaml
.
, TextEdit _range (if parenthise then addParens name' else name') | ||
) | ||
case T.uncons name of | ||
Nothing -> error "impossible: empty name provided by ghc" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be clear, these are an improvement in that they give clearer errors, but they will still crash HLS unrecoverably. We really, really want to avoid error
and friends also. But fixing them properly would require more refactoring.
Extract a couple of modules from the massive CodeAction file...
Intended for commit-by-commit review