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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix WitVKey instance for Ord #2419

Merged
merged 4 commits into from
Aug 10, 2021
Merged

Fix WitVKey instance for Ord #2419

merged 4 commits into from
Aug 10, 2021

Conversation

lehins
Copy link
Collaborator

@lehins lehins commented Aug 9, 2021

Current Ord instance allows breakage of referential transparency because this law doesn't hold: compare x y == EQ ==> x == y
This PR fixes this problem and adds couple property tests that ensure the fix.

There are also a couple of other minor improvements included in the PR.

@lehins lehins force-pushed the lehins/fix-witvkey-ord-instance branch from 48d43c9 to 1be6c12 Compare August 9, 2021 23:04
Copy link
Contributor

@JaredCorduan JaredCorduan left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@lehins lehins merged commit ba82c4c into master Aug 10, 2021
@iohk-bors iohk-bors bot deleted the lehins/fix-witvkey-ord-instance branch August 10, 2021 16:41
nc6 added a commit that referenced this pull request Aug 24, 2021
…mpatibility-witckey-ord-take-2

Perpetuate Ord bug (which was fixed in #2419) until Alonzo
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.

2 participants