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

Search for unknown number of parameters #412

Open
milesfrain opened this issue Jul 6, 2020 · 0 comments
Open

Search for unknown number of parameters #412

milesfrain opened this issue Jul 6, 2020 · 0 comments

Comments

@milesfrain
Copy link

Let's say I looking for any function that consumes a Seed, but I don't know what else I may need to provide for the zero or more additional arguments.

An example of a desired result is:

variant :: forall a. Seed -> Gen a -> Gen a

But variant is not found by:

Seed -> _
Seed -> a

Or even:

Seed -> _ -> _
Seed -> a -> b
Seed -> f a -> f a

This is the most generic option that works:

Seed -> _ a -> _ a
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

No branches or pull requests

1 participant