Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

WIP: Use Structured Diagnostics for Typed Holes #4695

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

Draft
sgillespie wants to merge 3 commits into haskell:master
base: master
Choose a base branch
Loading
from sgillespie:feature/st-diagnostics-hole-fill

Conversation

Copy link
Collaborator

@sgillespie sgillespie commented Aug 19, 2025
edited
Loading

This adds structured diagnostics to the hole fit suggestions. Unfortunately, the suggestions still come through via ErrorInfo, so we still need to use regex matchers to extract them.

fendor reacted with rocket emoji
-- plugins/hls-refactor-plugin/test/Main.hs:4011:
-- CodeAction with title "Replace _toException with E.toException" not found in
-- [..., "Replace _toException with toException", ...]
printErr :: SDoc -> T.Text
Copy link
Collaborator Author

@sgillespie sgillespie Aug 20, 2025

Choose a reason for hiding this comment

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

I can't seem to find any combination of SDocContext options that will result in E.toException (that is, with import qualified Control.Exception as E.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@santiweight santiweight Awaiting requested review from santiweight santiweight will be requested when the pull request is marked ready for review santiweight is a code owner

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /