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

Harmonize AllZip with All #138

Open
treeowl opened this issue Apr 7, 2021 · 3 comments · May be fixed by #142
Open

Harmonize AllZip with All #138

treeowl opened this issue Apr 7, 2021 · 3 comments · May be fixed by #142

Comments

@treeowl
Copy link

treeowl commented Apr 7, 2021

All comes with a method to use its constraints recursively; AllZip does not. Presumably one of those designs is better and should be used for both.

@kosmikus
Copy link
Member

Presumably, you mean adding a function like cpara_SList to AllZip?

I agree that this would be good as well.

In principle, I'd even like to just make AllZip c xs ys a synonym for All (Uncurry c) (Zip xs ys) (which would explain the name choice), but I currently don't see a way to do that while retaining the SameShapeAs trick which improves inference.

@treeowl
Copy link
Author

treeowl commented Apr 13, 2021 via email

kosmikus added a commit that referenced this issue Jun 20, 2021
Also add a cpara-like function for AllZip as suggested in #138.
@kosmikus
Copy link
Member

I've done this in #142. I haven't yet tested some other libs whether they compile ok with this change.

@kosmikus kosmikus linked a pull request Jan 8, 2022 that will close this issue
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 a pull request may close this issue.

2 participants