Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Cannot define recursive bound on associated type of an interface #4917

Open
casper-pragma opened this issue Apr 27, 2022 · 0 comments
Open

Comments

@casper-pragma
Copy link

I have a need to define something like the following:

interface A T => A a where
  T : Type

I have tried it with version 1.3.4 and it says it does not see T in scope.

Can I define it in idris?


If I were to define it in haskell, I would go like so:

class A (T b) => A b where
  type T b :: *

Need an equivalent in idris tho :3

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant