Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unused binding detection cleanup #5188

Merged
merged 2 commits into from
Jul 6, 2024
Merged

Conversation

ChrisPenner
Copy link
Contributor

@ChrisPenner ChrisPenner commented Jul 5, 2024

Sorry this was meant to be part of the original PR, but I didn't notice my push got blocked because CI ran a formatting pass 馃檲 ;

Trunk is still in a good state I think, but this makes it just a little nicer.

Just combines the results into a single nice message rather than a separate diagnostic for each one.

@@ -147,7 +147,7 @@ debugPatternCoverageConstraintSolver = PatternCoverageConstraintSolver `Set.memb
debug :: (Show a) => DebugFlag -> String -> a -> a
debug flag msg a =
if shouldDebug flag
then (pTrace (msg <> ":\n" <> into @String (pShow a)) a)
then (trace (msg <> ":\n" <> into @String (pShow a)) a)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Double-pretty showing debug messages messes them up.

@ChrisPenner ChrisPenner force-pushed the lsp/unused-binding-detection branch from d2f5a89 to dd17539 Compare July 5, 2024 23:35
@ChrisPenner ChrisPenner marked this pull request as ready for review July 5, 2024 23:37
@ChrisPenner ChrisPenner merged commit 60bb91a into trunk Jul 6, 2024
35 checks passed
@ChrisPenner ChrisPenner deleted the lsp/unused-binding-detection branch July 6, 2024 05:26
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.

None yet

2 participants