2024-07-10 17:46:18 +03:00
|
|
|
``` unison
|
2023-12-20 20:37:17 +03:00
|
|
|
structural type Foo = MkFoo Nat
|
|
|
|
|
|
|
|
main : () -> Foo
|
|
|
|
main _ = MkFoo 5
|
|
|
|
```
|
|
|
|
|
2024-07-10 19:17:15 +03:00
|
|
|
``` ucm
|
2023-12-20 20:37:17 +03:00
|
|
|
|
2023-12-22 14:55:24 +03:00
|
|
|
Loading changes detected in scratch.u.
|
|
|
|
|
2023-12-20 20:37:17 +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 Foo
|
|
|
|
main : 'Foo
|
|
|
|
|
|
|
|
```
|
2024-07-10 19:17:15 +03:00
|
|
|
``` ucm
|
2023-12-20 20:37:17 +03:00
|
|
|
foo/main> add
|
|
|
|
|
|
|
|
⍟ I've added these definitions:
|
|
|
|
|
|
|
|
structural type Foo
|
|
|
|
main : 'Foo
|
|
|
|
|
|
|
|
foo/main> run main
|
|
|
|
|
|
|
|
MkFoo 5
|
|
|
|
|
|
|
|
```
|