-
Notifications
You must be signed in to change notification settings - Fork 155
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
Equality on raw types #3662
Merged
Merged
Equality on raw types #3662
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lehins
force-pushed
the
lehins/post-release-changelog-adjustments
branch
from
August 18, 2023 13:17
a31ff25
to
c386199
Compare
lehins
force-pushed
the
lehins/equality-on-raw-types
branch
from
August 18, 2023 13:20
a19c892
to
276e841
Compare
lehins
force-pushed
the
lehins/equality-on-raw-types
branch
from
August 18, 2023 13:40
276e841
to
6611836
Compare
lehins
force-pushed
the
lehins/post-release-changelog-adjustments
branch
from
August 18, 2023 15:45
c386199
to
bcc29d6
Compare
lehins
changed the base branch from
lehins/post-release-changelog-adjustments
to
master
August 18, 2023 19:50
lehins
force-pushed
the
lehins/equality-on-raw-types
branch
3 times, most recently
from
August 22, 2023 20:20
9fb7567
to
2637323
Compare
teodanciu
reviewed
Aug 23, 2023
teodanciu
reviewed
Aug 23, 2023
lehins
force-pushed
the
lehins/equality-on-raw-types
branch
from
August 23, 2023 11:43
2637323
to
aeca1ff
Compare
teodanciu
reviewed
Aug 23, 2023
teodanciu
reviewed
Aug 23, 2023
teodanciu
reviewed
Aug 23, 2023
teodanciu
approved these changes
Aug 23, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
* Provide `EqRaw` instances for `TxCert`, `TxAuxData`, `TxWits`, `Script, `TxBody` and `Tx` for each era that defines one * Require and provide `ToExpr` instances for `TxCert`, `TxAuxData`, `Script` and `TxBody` * Simplify `specTxAuxDataUpgrade` test
lehins
force-pushed
the
lehins/equality-on-raw-types
branch
from
August 23, 2023 13:20
aeca1ff
to
b922b2c
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a
EqRaw
class that can be used to compare the Haskell type ignoring the underlying binary reopresentation for memoized times, regardless if they use MemoBytes or not. Default implementation, however, uses the MemoBytes representation, which will work for flat types based on MemoBytes, which is the majority of them. This approach simplifies the testing a bit.@nc6 I took your suggestion of creating a separate class for this concept, it works out slightly nicer, because it will make tests less complex.
As a bonus this PR also adds ToExpr instances for some of the core types.
Checklist
.cabal
andCHANGELOG.md
files according to theversioning process.
.cabal
files for all affected packages are updated. If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md)CHANGELOG.md
for the affected packages. New section is never added with the code changes. (See RELEASING.md)fourmolu
(usescripts/fourmolize.sh
)scripts/cabal-format.sh
)hie.yaml
has been updated (usescripts/gen-hie.sh
)