Open jpfairbanks opened 4 years ago
@mehalter do you think you could take a look at this? How should we handle this in general? Do we need to map Julia PL features onto the GAT term constructors in general? Should we use a mechanism like the @op
macro when defining the doctrine to supply this information to the program macro?
Since this macro generates wiring diagrams, not morphism expressions, it does not depend on otimes
in any important way. In fact, it only calls otimes
once (on objects) and I think that call could be removed, thus solving this problem.
Support for additive monoidal categories needs to be added in two places:
Catlab.WiringDiagrams.AlgebraicWiringDiagrams
Catlab.WiringDiagrams.Expressions
MWE: