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

Bug with lifting of staged code #15

Open
michaelballantyne opened this issue Feb 26, 2024 · 0 comments
Open

Bug with lifting of staged code #15

michaelballantyne opened this issue Feb 26, 2024 · 0 comments

Comments

@michaelballantyne
Copy link
Collaborator

This following works fine:

(let ([y 0])
  (run 1 (x)
    (== x y)))

But this gives an error:

(let ([y 0])
  (run 1 (x)
    (staged
      (== x y))))

The error it gives is:

variable y_10 is not bound
Context (plain):
 ~/Code/staged-miniKanren/private/faster-minikanren/mk.scm:354:7 
~Code/staged-miniKanren/private/faster-minikanren/mk.scm:317:9 
 ~/Code/staged-miniKanren/private/faster-minikanren/mk.scm:322:0 take

(Likely related to our use of syntax-local-lift-expression)

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

No branches or pull requests

1 participant