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

Interactive elaborator doesn't save changes to global state #2544

Closed
david-christiansen opened this issue Aug 25, 2015 · 2 comments
Closed

Comments

@david-christiansen
Copy link
Contributor

When leaving the interactive elaborator, the changes to the global state (such as auxiliary definitions created during the process) are not kept for the rechecking phase, which leads to proof scripts that are correct but that Idris initially rejects. Putting them in the file makes them work again. For example, I have an induction tactic that lazily generates elimination principles for datatypes, and these eliminators are not around for the recheck phase.

@david-christiansen
Copy link
Contributor Author

Interestingly, direct executions of context-modifying tactics work fine, but defining wrappers around them makes them not work.

@david-christiansen
Copy link
Contributor Author

OK, this is fixed in my Elab branch - it'll get in next time I merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant