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

Experiment with redefining bifunctors as uncurried functors #1933

Closed
Alizter opened this issue Apr 27, 2024 · 0 comments
Closed

Experiment with redefining bifunctors as uncurried functors #1933

Alizter opened this issue Apr 27, 2024 · 0 comments
Labels

Comments

@Alizter
Copy link
Collaborator

Alizter commented Apr 27, 2024

In #1883 I mentioned that we should consider redefining Is0Bifunctor F as Is0Functor (ucurry F). This has a few advantages:

  1. It allows us to use our "functorial-at-the-same-time" definitions.
  2. We don't have extra terms with the fmap01 and fmap10 split.
  3. Bifunctor coherence becomes a lemma and a way of constructing bifunctors.
  4. It generalised much more easily to the ternary and n-ary case.

I think we would be able to make some arguments slicker by doing this, but I haven't spent anytime really checking. It may however present other problems that I haven't thought about. I'll record this issue so that we don't forget about it.

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

No branches or pull requests

1 participant