-
Notifications
You must be signed in to change notification settings - Fork 204
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 code for structural equality, check that keys are upgradeable (2.9.x) #19666
Add code for structural equality, check that keys are upgradeable (2.9.x) #19666
Conversation
sdk/compiler/daml-lf-tools/src/DA/Daml/LF/TypeChecker/Upgrade.hs
Outdated
Show resolved
Hide resolved
sdk/compiler/daml-lf-tools/src/DA/Daml/LF/TypeChecker/Upgrade.hs
Outdated
Show resolved
Hide resolved
sdk/compiler/daml-lf-tools/src/DA/Daml/LF/TypeChecker/Upgrade.hs
Outdated
Show resolved
Hide resolved
sdk/compiler/daml-lf-tools/src/DA/Daml/LF/TypeChecker/Upgrade.hs
Outdated
Show resolved
Hide resolved
0212e83
to
a1db246
Compare
Refactor to have correct gamma in scope for recursive checks
…ks-disallow-key-upgrades-2.9.x
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally LGTM but I believe that the type constructor comparison may not always work as intended depending in which order we treat the dependencies.
Maybe that doesn't matter much here as we'd always recheck all packages? I'm not clear on what triggers a comparison at which level.
sdk/compiler/daml-lf-tools/src/DA/Daml/LF/TypeChecker/Upgrade.hs
Outdated
Show resolved
Hide resolved
sdk/compiler/daml-lf-tools/src/DA/Daml/LF/TypeChecker/Upgrade.hs
Outdated
Show resolved
Hide resolved
sdk/compiler/daml-lf-tools/src/DA/Daml/LF/TypeChecker/Upgrade.hs
Outdated
Show resolved
Hide resolved
sdk/compiler/daml-lf-tools/src/DA/Daml/LF/TypeChecker/Upgrade.hs
Outdated
Show resolved
Hide resolved
…ks-disallow-key-upgrades-2.9.x
…mplate (#19817) * Forbid adding new interface instances to the upgraded version of a template * allow adding new instances to new templates
…ion of a template (#19820) * [compiler] forbid adding new interface instances to the upgraded version of a template * allow adding new instances to new templates * add two more tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
, toListOf (packageRefs . _PRImport) pkg | ||
) | ||
fromPkgNode (x, _pkgId, _deps) = x | ||
sccs = G.stronglyConnCompR (map toPkgNode pkgs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe mention that stronglyConnCompR
also performs a topo sort as a comment.
Builds on work from #19184 and #19509