Skip to content

Conversation

sgillespie
Copy link
Collaborator

@sgillespie sgillespie commented Aug 19, 2025

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.

-- 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

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant