-
Notifications
You must be signed in to change notification settings - Fork 344
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
Orphan instances detection in haskell-process-trigger-suggestions is outdated #1110
Comments
TODO test other suggestions:
|
It looks like orphan instances warning was changed really long ago: ghc/ghc@5508ada#diff-e8ff0f7ff4e9411e2df0dba1dbd4bdd8L846 |
We should have a test file per each warning message. Then we should run each supported GHC version with each file producing a matrix of NxM messages. And then we need to support all of that :) |
@geraldus: Can you do first step, that is generate X.hs files, each generating one message of interest? |
@gracjan Maybe at the of week, but no promises. |
@gracjan I have created few files, but have no idea what to do with them :D |
We need a test case. Can you put them in a directory under |
Done #1168 |
I can't be certain, but it looks like orphan instance warning have changed in recent versions of GHC. Currently
haskell-process-trigger-suggestions
function uses following regex to detect orphan instance warnings in compiler response"Warning: orphan instance: "
[1], while GHC 7.10.3 gives a bit different formatting:As a result,
haskell-process-trigger-suggestions
does not suggest to add OPTIONS pragma as intended.@gracjan I know we need tests for this function, it's quite big and good test suite should rely on genuine GHC response, what will you say?
The text was updated successfully, but these errors were encountered: