2024-07-10 17:46:18 +03:00
|
|
|
``` unison
|
2023-11-23 00:31:05 +03:00
|
|
|
unique type Foo = { bar : Nat }
|
|
|
|
```
|
|
|
|
|
2024-07-10 19:17:15 +03:00
|
|
|
``` ucm
|
2023-11-23 00:31:05 +03:00
|
|
|
|
2023-12-22 14:55:24 +03:00
|
|
|
Loading changes detected in scratch.u.
|
|
|
|
|
2023-11-23 00:31:05 +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-23 00:31:05 +03:00
|
|
|
Foo.bar : Foo -> Nat
|
|
|
|
Foo.bar.modify : (Nat ->{g} Nat) -> Foo ->{g} Foo
|
|
|
|
Foo.bar.set : Nat -> Foo -> Foo
|
|
|
|
|
|
|
|
```
|
2024-07-10 19:17:15 +03:00
|
|
|
``` ucm
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> update
|
2023-11-23 00:31:05 +03:00
|
|
|
|
|
|
|
Okay, I'm searching the branch for code that needs to be
|
|
|
|
updated...
|
|
|
|
|
2023-11-28 06:12:03 +03:00
|
|
|
Done.
|
2023-11-23 00:31:05 +03:00
|
|
|
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> view Foo
|
2023-11-23 00:31:05 +03:00
|
|
|
|
2024-06-26 22:04:02 +03:00
|
|
|
type Foo = { bar : Nat }
|
2023-11-23 00:31:05 +03:00
|
|
|
|
|
|
|
```
|