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

Minimize constraints to avoid ghc bug #2978

Merged
merged 1 commit into from
Aug 16, 2022

Conversation

lehins
Copy link
Collaborator

@lehins lehins commented Aug 16, 2022

Consensus tools tests stumbled upon the same GHC bug that was mentioned in this #2950 (comment)

I went through all of the sites where bug could potentially be triggered and removed this possibility by removing redundant constraints.

There are no semantic changes in this PR, just expansion of class instances' constraints to the minimal possible set, but only for those instances that can trigger the bug.

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.

Looks great to me!

You haveCatrdano 🐱 in the commit messages.

…hc bug:

* GHC bug: https://gitlab.haskell.org/ghc/ghc/-/issues/21973
* Minimized number of constraints in all modules where the bug was possible:
  * `Cardano.Ledger.Shelley.TxBody`
  * `Cardano.Ledger.Shelley.Tx`
  * `Cardano.Ledger.ShelleyMA.TxBody`
  * `Catrdano.Ledger.Alonzo.TxBody`
  * `Catrdano.Ledger.Alonzo.Tx`
  * `Catrdano.Ledger.Babbage.TxBody`
@lehins lehins force-pushed the lehins/minimize-constraints-to-avoid-ghc-bug branch from 53d648c to 651d325 Compare August 16, 2022 13:51
@lehins
Copy link
Collaborator Author

lehins commented Aug 16, 2022

Fixed that 😹 rdano and squashed into one commit with a better message. Will merge as soon as PR goes green.

@lehins lehins merged commit a46d52b into master Aug 16, 2022
@iohk-bors iohk-bors bot deleted the lehins/minimize-constraints-to-avoid-ghc-bug branch August 16, 2022 18:57
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