-
-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Record Dot Hover Types #3016
Record Dot Hover Types #3016
Conversation
c9185bc
to
22b64b7
Compare
Do we have to introduce the large file with 2000+ lines? It looks similar to |
You're right, the |
I think that's the nature of the |
We would want a patch that is accepted for GHC HEAD before we can merge such changes to hie-compat. We have followed this policy for all the previous patches we have in |
01c4426
to
0199547
Compare
Should be good to go. I've added the comments to HieAst.hs, and the patch is merged into GHC master. |
Could you add the patch to the readme of hie-compat?
…On Sat, 16 Jul, 2022, 18:13 Colten Webb, ***@***.***> wrote:
Should be good to go. I've added the comments to HieAst.hs, and the patch
is merged into GHC master.
—
Reply to this email directly, view it on GitHub
<#3016 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABEW5UUWREESPACAEE2IDTDVUKU6JANCNFSM52S5HRUQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
e70846e
to
a4ec3ec
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.
Thanks, looks all good now.
a4ec3ec
to
46ae097
Compare
Just needs a test, I think? |
46ae097
to
ef64513
Compare
I added three tests, there are additional tests for the record dot syntax types on the GHC side too. |
ef64513
to
a516302
Compare
✨ |
a516302
to
2082248
Compare
Sweet! |
, tst (getTypeDefinitions, checkDefs) aL20 sourceFilePath (pure [ExpectNoDefinitions]) "Polymorphic variable"] | ||
|
||
recordDotSyntaxTests | ||
| ghcVersion == GHC92 = |
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.
Ah, too late: should this check be more generous? We expect these tests to work on later versions also, right?
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.
Oh that's correct. I'll make a PR for that
* patch hieast * add comments * add hlint ignore * update readme * add tests
Working towards #2732 (reopened since I closed and force-pushed my last PR, which github dislikes)
This PR patches the way HieAST is generated by GHC. For performance reasons, not all nodes in the AST get expanded and checked for types. This caused the nodes corresponding to record-dot-syntax to not be included in the HieAST. This patch adds them back.
Notes
This is what type info on hover looks like: