chore: Various minor updates relating to bicategories#607
Merged
plt-amy merged 6 commits intothe1lab:mainfrom Mar 18, 2026
Merged
chore: Various minor updates relating to bicategories#607plt-amy merged 6 commits intothe1lab:mainfrom
plt-amy merged 6 commits intothe1lab:mainfrom
Conversation
Member
|
Do you mind if this is merged before #606 ? |
Member
Changed pages
|
Contributor
Author
|
I don't mind at all :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This implements @plt-amy's suggestion to replace the definitions of
λ←et.c. inCat.Bi.Basewith re-exports, so that goals involving bicategory 2-cells normalise to something nicer. I also add⊗as an alias for the modulecomposeto the same effect. The former change meansα←andα→now need to have their arguments passed as a tuple, but I would argue it's worth it to get the nicer normal forms, especially since these arguments are often omitted anyways.(The analogue of these changes could also be applied monoidal categories, but I left them unchanged for now.)
In addition, I redefine the
preactionandpostactionfunctors usingBifunctor.LeftandBifunctor.Right, to make them compatible with the unitors, and addno-eta-equalityto the various bicategory-related records.Update: I also did the re-export thing for
γ→,ν→etc, and added naturality shorthandsγ→nat,ν→nat, etc.Checklist
Before submitting a merge request, please check the items below:
support/sort-imports.hs(ornix run --experimental-features nix-command -f . sort-imports).If your change affects many files without adding substantial content, and
you don't want your name to appear on those pages (for example, treewide
refactorings or reformattings), start the commit message and PR title with
chore:.