12 | %language ElabReflection
23 | ||| Expand shortened string diagram notation into a full expression.
24 | |||
25 | ||| This takes two additional parameters: `obj`, which is a wildcard
26 | ||| expression used when passing objects as parameters, and `impl`,
27 | ||| which is the `Cartesian` implementation the expansion will use.
28 | export
37 | `(let Control.Category.Cartesian.MkCartesian @{~(IBindVar EmptyFC mon)} {} = ~(IVar EmptyFC crt)
40 | where
62 | stringImpl'
89 | ||| Enter string diagram notation (for `Cartesian`).
90 | |||
91 | ||| This elaboration script must be specifically invoked with
92 | ||| `%runElab`. The category is inferred from the return type, but
93 | ||| the tensor product must be passed as an explicit argument.
94 | export