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

instance Listable Data.Void.Void #21

Closed
jwaldmann opened this issue Oct 6, 2022 · 1 comment · Fixed by rudymatela/leancheck-instances#1
Closed

instance Listable Data.Void.Void #21

jwaldmann opened this issue Oct 6, 2022 · 1 comment · Fixed by rudymatela/leancheck-instances#1
Assignees

Comments

@jwaldmann
Copy link

Perhaps this is for leancheck-instances? --- I recently wanted

instance Listable Void where tiers = []

Use case: terms with variables, something like

data Term v = A | B (Term v) (Term v) | Var v deriving Generic
instance Listable v => Listable (Term v) where tiers = genericTiers

and Term Void is ground terms (i.e., without variables)

@rudymatela
Copy link
Owner

Perhaps this is for leancheck-instances?

@jwaldmann Yes.

I have added it to leancheck-instances now. It's part of leancheck-instances-0.0.5, which I released on Hackage just now.

My goal is to include all types present in quickcheck-instances in leancheck-instances, but only about 10% is covered now. If you ever feel like another type is missing and have the spare time, contributions are welcome. :-) There's a guide on how to add new instances to leancheck-instances in one of its README sections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants