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

Avoid non-deterministic type comparison #81

Open
adamgundry opened this issue Jun 23, 2021 · 0 comments
Open

Avoid non-deterministic type comparison #81

adamgundry opened this issue Jun 23, 2021 · 0 comments

Comments

@adamgundry
Copy link
Owner

GhcApi.Compare uses nonDetCmpType, which can given different results between runs. it would be nice to avoid this. Most of the time we don't actually encounter arbitrary Types in Atoms, though, unless the user is doing something very weird.

coxswain has something in this direction that might be helpful: https://github.com/nfrisby/coxswain/blob/bfd5777964a5b4ba64e1bcc4cf18df1c9d8fc558/coxswain/src/LowLevel.hs#L115

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