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

Add FromSharedCBOR constraint to the EraTxOut #2950

Merged
merged 2 commits into from
Aug 8, 2022

Conversation

lehins
Copy link
Collaborator

@lehins lehins commented Aug 2, 2022

In order to not propagate this FromSharedCBOR constraint all the way to consensus it should be as a superclass of EraTxOut (before it was superclass of ShelleyBasedEra synonym, which was removed in #2901)

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.

👍

@lehins lehins force-pushed the lehins/fixups-to-recent-restructure branch from cfb88d0 to 8da3495 Compare August 6, 2022 18:52
A more restricitve constraint with a redundant associated type family
constraint causes GHC to generate code that goes into an infinite loop.
This depicts iteslf in an OOM when compiled with `-O0` and non
terminating computaton when compiled with optimizations.

Here is the bug report on the GHC issue tracker:
https://gitlab.haskell.org/ghc/ghc/-/issues/21973
@lehins lehins force-pushed the lehins/fixups-to-recent-restructure branch from 8da3495 to 01a43be Compare August 6, 2022 23:29
@lehins
Copy link
Collaborator Author

lehins commented Aug 6, 2022

Seems like this PR has discovered a bug in GHC: https://gitlab.haskell.org/ghc/ghc/-/issues/21973 A work around has been applied

@lehins lehins merged commit d696f1d into master Aug 8, 2022
@iohk-bors iohk-bors bot deleted the lehins/fixups-to-recent-restructure branch August 8, 2022 14:17
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