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

Applicative, preserving mempties of each element #88

Open
cognivore opened this issue Oct 11, 2021 · 1 comment
Open

Applicative, preserving mempties of each element #88

cognivore opened this issue Oct 11, 2021 · 1 comment

Comments

@cognivore
Copy link

Currently, Applicative for tuples duplicates mempty of the first element:

|> Tuple.duplicate(size)

Since we're not constrained by parametricity, couldn't we preserve "type" of every element kind of for free, making the usually controversial instance for n-tuples, where n>2 a tad less controversial?

@github-actions
Copy link

Thank you for submitting an issue! It means a lot that you took the time -- it helps us be better 🙏

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