2023-11-08 17:16:19 +03:00
|
|
|
```unison
|
2023-11-08 17:33:42 +03:00
|
|
|
unique type Foo
|
2023-11-08 17:16:19 +03:00
|
|
|
= Bar Nat
|
|
|
|
| Baz Nat Nat
|
|
|
|
```
|
|
|
|
|
|
|
|
```ucm
|
|
|
|
|
2023-12-22 14:55:24 +03:00
|
|
|
Loading changes detected in scratch.u.
|
|
|
|
|
2023-11-08 17:16:19 +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`:
|
|
|
|
|
2024-01-04 11:42:12 +03:00
|
|
|
type Foo
|
2023-11-08 17:16:19 +03:00
|
|
|
|
|
|
|
```
|
|
|
|
```ucm
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> add
|
2023-11-08 17:16:19 +03:00
|
|
|
|
|
|
|
⍟ I've added these definitions:
|
|
|
|
|
2024-01-04 11:42:12 +03:00
|
|
|
type Foo
|
2023-11-08 17:16:19 +03:00
|
|
|
|
|
|
|
```
|
|
|
|
```unison
|
2023-11-08 17:33:42 +03:00
|
|
|
unique type Foo
|
2023-11-08 17:16:19 +03:00
|
|
|
= Bar Nat
|
|
|
|
```
|
|
|
|
|
|
|
|
```ucm
|
|
|
|
|
2023-12-22 14:55:24 +03:00
|
|
|
Loading changes detected in scratch.u.
|
|
|
|
|
2023-11-08 17:16:19 +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 names already exist. You can `update` them to your
|
|
|
|
new definition:
|
|
|
|
|
2024-01-04 11:42:12 +03:00
|
|
|
type Foo
|
2023-11-08 17:16:19 +03:00
|
|
|
|
|
|
|
```
|
|
|
|
```ucm
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> update
|
2023-11-08 17:16:19 +03:00
|
|
|
|
2023-11-14 06:36:03 +03:00
|
|
|
Okay, I'm searching the branch for code that needs to be
|
|
|
|
updated...
|
|
|
|
|
2023-11-08 17:16:19 +03:00
|
|
|
Done.
|
|
|
|
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> view Foo
|
2023-11-08 17:16:19 +03:00
|
|
|
|
2024-01-04 11:42:12 +03:00
|
|
|
type Foo = Bar Nat
|
2023-11-08 17:16:19 +03:00
|
|
|
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> find.verbose
|
2023-11-08 17:16:19 +03:00
|
|
|
|
2023-11-08 17:33:42 +03:00
|
|
|
1. -- #b509v3eg4kehsg29g6pvrogeb71ue32nm2fj9284n4i7lprsr7u9a7g6s695d09du0fsfti6rrsk1s62q5thpr1jjkqb3us3s0lrd60
|
2024-01-04 11:42:12 +03:00
|
|
|
type Foo
|
2023-11-08 17:16:19 +03:00
|
|
|
|
2023-11-08 17:33:42 +03:00
|
|
|
2. -- #b509v3eg4kehsg29g6pvrogeb71ue32nm2fj9284n4i7lprsr7u9a7g6s695d09du0fsfti6rrsk1s62q5thpr1jjkqb3us3s0lrd60#0
|
2023-11-08 17:16:19 +03:00
|
|
|
Foo.Bar : Nat -> Foo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|