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

Fix #324: Keep track of instance-only imports #380

Merged
merged 4 commits into from
Dec 17, 2024

Conversation

jespercockx
Copy link
Member

This fixes #324 by keeping track of instances that should be imported from other modules, and generating an empty import list if necessary.

One minor aesthetic problem is that if you have a qualified imports and you also use instances from that module, there will be two imports: one qualified one and one instance-only (unqualified) one. This could probably be fixed too by a smarter way of merging imports, but it doesn't affect correctness so I'm leaving it as-is for now.

@jespercockx jespercockx merged commit 84c0c36 into agda:master Dec 17, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant