-
-
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
How to control the display of type signature lenses #1477
Comments
It seems that it already should work 😉 |
Great! Here is another approach: we could produce hidden diagnostics for suggesting top-level type signatures by ourselves, rather than setting
As for local bindings, iirc GHC producing missing signatures warnings in typecheck pass, which uses some intermediate values we can't access to, so we still have to use diagnostics from GHC. Anyway, we havn't set cc @pepeiborra |
To be clear, i've not tested it, only saw your comment in discord |
OK... at least it works on my machine. |
This issue is confusing. If this is already working, perhaps either close the issue or change the title? @berberman if we produce the sigs ourselves, why do we need hidden diagnostics at all? @berberman I don't agree that GHC flags are obscure. I think it could be perhaps a little surprising that GHC flags change the behaviour of HLS. In any case, I am ambivalent about using plugin config VS GHC flags. The former is more deliberate, the latter are more widely known and much better documented |
Yes, the title should be changed to something like "How to control the display of type signature lenses".
Ignore me, we don't need diagnostics in this case at all.
Yeah, that's what I mean. For this issue, we could have a better documentation on the effect on type lenses by GHC flags. |
Agree, we could use both adding a config option "Use ghc flags" (or whatever meaningful name) |
FYI after https://gitlab.haskell.org/ghc/ghc/-/merge_requests/4741, setting |
(Suggested in fp discord channel by @edmundnoble)
The text was updated successfully, but these errors were encountered: