2024-07-10 17:46:18 +03:00
|
|
|
``` unison
|
2022-11-23 00:00:54 +03:00
|
|
|
structural type M a = N | J a
|
|
|
|
|
|
|
|
d = {{
|
|
|
|
|
|
|
|
{{ docExample 0 '(x -> J x) }}
|
|
|
|
|
|
|
|
{J}
|
|
|
|
|
|
|
|
}}
|
|
|
|
```
|
|
|
|
|
2024-07-10 19:17:15 +03:00
|
|
|
``` ucm
|
2022-11-23 00:00:54 +03:00
|
|
|
|
2023-12-22 14:55:24 +03:00
|
|
|
Loading changes detected in scratch.u.
|
|
|
|
|
2022-11-23 00:00:54 +03:00
|
|
|
I found and typechecked these definitions in scratch.u. If you
|
|
|
|
do an `add` or `update`, here's how your codebase would
|
|
|
|
change:
|
|
|
|
|
|
|
|
⍟ These new definitions are ok to `add`:
|
|
|
|
|
|
|
|
structural type M a
|
|
|
|
(also named builtin.Optional)
|
|
|
|
d : Doc2
|
|
|
|
|
|
|
|
```
|
2024-07-10 19:17:15 +03:00
|
|
|
``` ucm
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> add
|
2022-11-23 00:00:54 +03:00
|
|
|
|
|
|
|
⍟ I've added these definitions:
|
|
|
|
|
|
|
|
structural type M a
|
|
|
|
(also named builtin.Optional)
|
|
|
|
d : Doc2
|
|
|
|
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> display d
|
2022-11-23 00:00:54 +03:00
|
|
|
|
|
|
|
`x -> J x`
|
|
|
|
|
|
|
|
J
|
|
|
|
|
|
|
|
```
|