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

Factor out SOAS and prepare unification modules #4

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fizruk
Copy link
Collaborator

@fizruk fizruk commented Nov 8, 2024

No description provided.

SOAS binder metavar' sig n
applyMetaSubsts rename scope substs = \case
Var x -> Var x
Node (R2 (MetaAppSig metavar args)) ->
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
Node (R2 (MetaAppSig metavar args)) ->
MetaApp metavar args ->

Foil.nameMapToSubstitution $
toNameMap Foil.emptyNameMap names args'
in substitute scope substs' body
Nothing -> Node $ R2 $ MetaAppSig (rename metavar) args'
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
Nothing -> Node $ R2 $ MetaAppSig (rename metavar) args'
Nothing -> MetaApp (rename metavar) args'

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