Skip to content

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
@jespercockx jespercockx added this to the 1.4 milestone Sep 4, 2025
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.

Imports of modules that have current module name as prefix are dropped silently Typeclass instances not imported.

1 participant