Skip to content

Fix Signature Help inside do Notation #4904

Open
vidit-od wants to merge 1 commit intohaskell:masterfrom
vidit-od:Do-Signature-Traversal
Open

Fix Signature Help inside do Notation #4904
vidit-od wants to merge 1 commit intohaskell:masterfrom
vidit-od:Do-Signature-Traversal

Conversation

@vidit-od
Copy link
Copy Markdown
Collaborator

@vidit-od vidit-od commented Apr 19, 2026

Closes : #4769

As recommended, Type information of Some nodes were stored in GHC generated nodes.
This PR keeps the old pipeline and add a Fall back to traverse these generated nodes in case source node lack type information.

Attached image of signature help in cases where we did not get them before;
image

Prerequisite :

  • passes all hls-signature-help-plugin tests on GHC 9.12.2 :
image
Major Finding credits : @jian-lin

Some nodes have there type info stored in nodes generated by ghc. In case no type info found in source node, fall back to traversing ghc generated nodes for types

Signed-off-by: vidit-od <vidit894@gmail.com>
@vidit-od vidit-od requested review from fendor and jian-lin April 19, 2026 11:06
@vidit-od vidit-od changed the title Traverse Generated Nodes Fix Signature Help inside do Notation Apr 19, 2026
Copy link
Copy Markdown
Collaborator

@jian-lin jian-lin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I'll do a more careful review later.

In the meantime, it would be good to add a test case for the issue.

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.

Signature Help should provide signature in the do notation

2 participants