Skip to content

Fix for #2535#2542

Merged
facundominguez merged 16 commits into
developfrom
fd/fix-2535
Jun 2, 2025
Merged

Fix for #2535#2542
facundominguez merged 16 commits into
developfrom
fd/fix-2535

Conversation

@facundominguez

Copy link
Copy Markdown
Collaborator

This PR is redoing #2538, which was reverted. @nikivazou, please feel free to work on this branch as needed.

@facundominguez facundominguez mentioned this pull request May 21, 2025
@nikivazou

Copy link
Copy Markdown
Member

It is ready to merge!

@facundominguez facundominguez left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

👍 I don't find other things to improve about the code itself, though I left a suggestion for improving documentation.

Probably this should be merged after merging ucsd-progsys/liquid-fixpoint#753 and updating the liquid-fixpoint submodule.

| length ts == length ts' = RApp c (Misc.zipWithDef go ts $ Bare.matchKindArgs ts ts') p r
-- Removing length check because Haskell types can contain kinds which is safe based on the comment above
-- | length ts == length ts'
= RApp c (Misc.zipWithDef go ts $ Bare.matchKindArgs ts ts') p r

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This could be a good time to document what goPlug is supposed to do.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Well, plug is definitely replacing the holes (_) with their actual types, but to do it gets the type information from the GHC types, thus it checks that the two are compatible.

I agree that it would be great to get cleaned/documented, but since this PR fixes an actual bug, I suggest we do it later :)

But I will minimize the fixpoint example!

@nikivazou

Copy link
Copy Markdown
Member

Shall we merge? I simplified the fixpoint example!

@facundominguez facundominguez merged commit a67185f into develop Jun 2, 2025
4 checks passed
@facundominguez facundominguez deleted the fd/fix-2535 branch June 2, 2025 10:31
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