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
66 | Control.Category.Monoidal.applyAssoc
73 | where
88 | ||| Enter string diagram notation (for `Monoidal`).
89 | |||
90 | ||| This elaboration script must be specifically invoked with
91 | ||| `%runElab`. The category is inferred from the return type, but
92 | ||| the tensor product must be passed as an explicit argument.
93 | export