Skip to content

Conversation

@jespercockx
Copy link
Member

@jespercockx jespercockx commented Nov 21, 2025

This is useful for things that are defined in a FOREIGN pragma, either by importing from a Haskell module or as an inline Haskell definition.

I also noticed that currently there are absolutely no checks done on the existing-class keyword, so as a hack you could just use it for any symbol that you don't want to be compiled by agda2hs but still recognized by it. This PR also changes it so that we check at least that it is applied to a record type (unless we also want it to apply to postulates?)

Note that I have not yet written any tests for this, so I'm marking it as a draft for now.

This is useful for things that are defined in a FOREIGN pragma, either by importing from a Haskell module or as an inline Haskell definition
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.

2 participants