-
Notifications
You must be signed in to change notification settings - Fork 4
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
Refactor FinitaryCategory Type Class #25
Comments
This will cause a major API change, so we need to discuss this better. |
Question: should we also change the order of paramaters in the |
In this case it might even make sense to use some sort of operator for morphism composition. Clearly we can't use One possibility would be to define an instance of the Otherwise, we need to find an operator that is not too noisy and doesn't clash with common Haskell libraries. |
It makes sense. We could use |
The name |
Updated |
@lm-rodrigues once suggested to me that How about we integrate |
About the integration of What would be the case for the Category Graph, which today only implements Should we also implement |
Good point. As it stands, I think it would be best to keep these type classes separate, since they do express separate concerns (the "definition" of a finitary category is independent of the algorithms for finding morphisms between its objects). |
Refactor the
Morphism
type class, renaming it toFinitaryCategory
to better match its responsabilities.At the same time, implement @ggazzi's suggestion of using a Context Monad to store important information about the category, such as the type graph of a TGraph and the type graph and NAC strategy of a TSpan.
Morphism
toFinitaryCategory
compose
and add an alias(<&>)
IntegrateFindMorphism
intoFinitaryCategory
The text was updated successfully, but these errors were encountered: