🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

Add signature command - #6225

Merged
ChrisPenner merged 8 commits into
trunkfrom
cp/signature-command
Apr 24, 2026
Merged

Add signature command#6225
ChrisPenner merged 8 commits into
trunkfrom
cp/signature-command

Conversation

@ChrisPenner

Copy link
Copy Markdown
Member

Overview

Note: this PR is largely vibe-coded; however I did double-check the whole implementation

At some point view was changed to also show documentation, this is sometimes nice, but also makes it pretty annoying to just see the type signature of a term when you want to. Maybe docs shouldn't be included in view, but this PR takes a different approach of just adding a signature command which shows the type of any term or constructor.

Implementation approach and notes

  • Adds a new signature command which just renders the type of a definition.

Test coverage

  • Transcript test

@ChrisPenner
ChrisPenner force-pushed the cp/signature-command branch from 104381f to c8cad0d Compare April 23, 2026 22:25
@ChrisPenner
ChrisPenner requested a review from aryairani April 23, 2026 22:28
Comment thread scripts/check-formatting
cd "$SCRIPTDIR/.."
find . -name '*.hs' \
-not -path "*/dist-newstyle/*" \
-not -path "*/.stack-work*/*" -print0 \

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I have a custom lsp.stack-work for HLS which was causing formatting to fail, this should work in both cases.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I see. I wish we had a better solution for these one-offs, because anyone can make up any path.

@pchiusano
pchiusano added this pull request to the merge queue Apr 23, 2026
Comment thread .gitignore Outdated
Comment on lines +17 to +18
*.stack-work
*.stack-work-hls

@aryairani aryairani Apr 23, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@copilot can you consolidate these to

*.stack-work*

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Done in f36a8db — consolidated to *.stack-work*.

@ChrisPenner
ChrisPenner added this pull request to the merge queue Apr 24, 2026
Merged via the queue into trunk with commit 14db260 Apr 24, 2026
12 checks passed
@ChrisPenner
ChrisPenner deleted the cp/signature-command branch April 24, 2026 17:20
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.

4 participants