10 | %language ElabReflection
31 | ||| Check if this string diagram is valid in a monoidal category.
37 | where
46 | checkDiagram'
54 | ||| Expand shortened string diagram notation into a full expression.
55 | |||
56 | ||| This takes two additional parameters: `obj`, which is a wildcard
57 | ||| expression used when passing objects as parameters, and `impl`,
58 | ||| which is the `Monoidal` implementation the expansion will use.
59 | export
67 | Control.Category.Monoidal.applyAssoc
75 | where
90 | ||| Enter string diagram notation (for `Monoidal`).
91 | |||
92 | ||| This elaboration script must be specifically invoked with
93 | ||| `%runElab`. The category is inferred from the return type, but
94 | ||| the tensor product must be passed as an explicit argument.
95 | export