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

Revert "Gen sorted interfaces" #887

Merged
merged 1 commit into from Jan 17, 2023
Merged

Conversation

endgame
Copy link
Collaborator

@endgame endgame commented Jan 17, 2023

Using Data.Map.Map to sort gen outputs caused the ordering of certain fields inside the containers to change, breaking (at least) amazonka-emr-containers. The generator tries to calculate the set of derivable typeclasses through a Ptr, and takes a guess instead of looking up the actual pointed-to type.

I have spent a week and a half trying to make this work, and have decided to give up. More fundamental changes are needed, and they can be done after 2.0. The bug is still present, but the relative ordering of StructF vs Ptr versions of ShapeF within a HashMap hasn't triggered any broken service bindings... yet.

Reverts #862
Closes #880
Related to #888

@endgame endgame merged commit c12026c into main Jan 17, 2023
@endgame endgame deleted the revert-862-gen-sorted-interfaces branch January 17, 2023 02:07
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.

amazonka-emr-containers and amazonka-emr-serverless do not compile
1 participant