Skip to content

Commit

Permalink
Oops, needed the codomain modified after all
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Arlin committed Feb 23, 2024
1 parent 579d1b7 commit d3e0500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/categorical_algebra/FinCats.jl
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ allow for types such as that of identity morphisms upon mutation.
function dom_to_graph(F::FinDomFunctor{Dom,<:Cat{Ob,Hom}},obtype=Ob,homtype=Hom) where {Dom,Ob,Hom}
D = dom(F)
C = FinCat(graph(D))
FinDomFunctorMap(obtype[ob_map(F,ob) for ob in ob_generators(D)],homtype[hom_map(F,hom) for hom in hom_generators(D)],C,codom(F))
FinDomFunctorMap(obtype[ob_map(F,ob) for ob in ob_generators(D)],homtype[hom_map(F,hom) for hom in hom_generators(D)],C,TypeCat(obtype,homtype))
end
function Base.show(io::IO, F::T) where T <: FinDomFunctorMap
Categories.show_type_constructor(io, T); print(io, "(")
Expand Down

0 comments on commit d3e0500

Please sign in to comment.