Skip to content

Conversation

@mbenke
Copy link
Collaborator

@mbenke mbenke commented Jan 2, 2026

No description provided.

@mbenke mbenke force-pushed the mbenke/respec branch 2 times, most recently from 7250f05 to cf8be5d Compare January 2, 2026 16:28
@mbenke mbenke marked this pull request as ready for review January 2, 2026 16:30
Copy link
Member

Choose a reason for hiding this comment

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

It seems this file is a dead file.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Indeed. I tried to make it a separate module but failed due to cyclic imports. Removed.

Comment on lines 379 to 383
instance Semigroup TVRenaming where
r1 <> r2 = TVR (filter (uncurry (/=)) [ (u, renameTV r1 v) | (u, v) <- unTVR r2])

instance Monoid TVRenaming where
mempty = TVR mempty
Copy link
Member

Choose a reason for hiding this comment

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

It seems <> implementation doesn't satisfy the monoid law here. The right identity law is violated,
e.g., TVR [(a, b)] <> TVR [] should be equal to TVR [(a, b)], but actually returns TVR [].

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch! I have focused so much on removing redundant pairs, I forgot about this. Fixed.

@mbenke mbenke requested a review from Y-Nak January 8, 2026 09:28
Copy link
Member

@Y-Nak Y-Nak left a comment

Choose a reason for hiding this comment

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

Great!

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.

3 participants