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

Fix detection of tyvars when generalizing sorts of gsImpAxioms #2455

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

facundominguez
Copy link
Collaborator

Follow up to 9dc1230 in #2451.

-- replaces those with @FVar@s.
eqToPolySort :: F.EquationV v -> F.Sort
eqToPolySort e =
let s = foldr (F.FFunc . snd) (F.eqSort e) (F.eqArgs e)
ss = filter (all isLower . take 1 . F.symbolString) $ S.toList $ F.sortSymbols s
ss = filter (isTyVarName . F.symbolString) $ S.toList $ F.sortSymbols s
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The test as it was would consider int and bool type variables as well, which is not what we need here.

@facundominguez facundominguez merged commit b159872 into develop Dec 3, 2024
4 checks passed
@facundominguez facundominguez deleted the fd/tyvar-detection branch December 3, 2024 10:59
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.

1 participant