Skip to content

Conversation

@sjakobi
Copy link
Member

@sjakobi sjakobi commented Nov 11, 2025

This PR could have been an issue, but I wanted to use your CI to check whether my understanding of this code is correct.

  • ttmap is a HashMap that maps each NormalizedFilePath key to itself.
  • So if nfp is a member of ttmap, we find the same nfp in the map, and have nfp' = nfp.
  • If nfp isn't a member, we fall back to the default, which is also nfp.
  • So in both cases we end up with nfp' = nfp.

I don't actually know what this code was meant to do! It was introduced in 0e642b3.

@sjakobi sjakobi requested a review from wz1000 as a code owner November 11, 2025 12:22
@sjakobi
Copy link
Member Author

sjakobi commented Nov 11, 2025

Ugh, now I get it. It really is only about the sharing.

Seems like the cold I have is also affecting my brain function. :/

@sjakobi
Copy link
Member Author

sjakobi commented Nov 11, 2025

I wonder whether unordered-containers could make this much simpler though:

haskell-unordered-containers/unordered-containers#546

I would love to get your feedback on that idea!

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