Skip to content

saw-core-coq: Define newtype for Coq Ident and ModuleName types. #2435

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brianhuffman
Copy link
Contributor

Fixes #1253.

I did the best I could to figure out which instances of String and Ident were pre-translation and which were post-translation, but the code was undisciplined and mixed up the levels in a couple of places, so it was necessary to make a few changes beyond just inserting newtype coercions. I tried to preserve the output behavior of the translation in these cases.

@brianhuffman
Copy link
Contributor Author

It looks like I managed to introduce some extra quotation marks in my Show instances, which are breaking the heapster tests. It should be easy to fix.

@brianhuffman
Copy link
Contributor Author

There's also a more serious problem with how to distinguish module names that have and have not been translated yet. There doesn't seem to be a good way to properly disentangle these.

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.

Make Coq Ident type into a newtype
1 participant