Skip to content
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

Treat Suggestions as warnings in quickfix #103

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Treat Suggestions as warnings in quickfix #103

wants to merge 1 commit into from

Conversation

lesguillemets
Copy link

@lesguillemets lesguillemets commented Oct 10, 2016

Currently, Suggestions fromghc-mod lint are treated as errors because ghcmod#parse_make doesn't handle messages starting with Suggestion:. I think these suggestions are better treated as warnings rather than errors. What do you think?

For example, for this code

main = putStrLn $ "Hi"
before : |1 col 8 error| Suggestion: Redundant $
after  : |1 col 8 warning| Suggestion: Redundant $

Edit: I wasn't able to update/add test for this, as the tests don't seem to be working in my environment (I haven't investigated further). Let me know if there's anything I should do.

    before : |1 col 8 error| Suggestion: Redundant $
    after  : |1 col 8 warning| Suggestion: Redundant $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant