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

Typeclass instances not imported. #324

Open
bwbush opened this issue May 9, 2024 · 0 comments
Open

Typeclass instances not imported. #324

bwbush opened this issue May 9, 2024 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@bwbush
Copy link

bwbush commented May 9, 2024

If an Agda module only contains typeclass instances (i.e., orphans), then agda2hs code in other modules do not have an import statement generated for the module with the instances.

Here is an example that shows the workaround for the missing import:

open import Peras.QCD.Types.Instances

{-# FOREIGN AGDA2HS
import Peras.QCD.Types.Instances ()
#-}
@jespercockx jespercockx added the bug Something isn't working label May 10, 2024
@jespercockx jespercockx added this to the 1.4 milestone May 10, 2024
jespercockx added a commit to jespercockx/agda2hs that referenced this issue Jul 11, 2024
jespercockx added a commit to jespercockx/agda-core that referenced this issue Jul 27, 2024
@jespercockx jespercockx self-assigned this Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants