unison/unison-src/transcripts/update-term-with-dependent.output.md

77 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

``` ucm
scratch/main> builtins.merge
2023-11-07 21:46:14 +03:00
Done.
```
``` unison
2023-11-07 21:46:14 +03:00
foo : Nat
foo = 5
bar : Nat
bar = foo + 10
```
``` ucm
2023-11-07 21:46:14 +03:00
Loading changes detected in scratch.u.
2023-11-07 21:46:14 +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`:
bar : Nat
foo : Nat
```
``` ucm
scratch/main> add
2023-11-07 21:46:14 +03:00
⍟ I've added these definitions:
bar : Nat
foo : Nat
```
``` unison
2023-11-07 21:46:14 +03:00
foo : Nat
foo = 6
```
``` ucm
2023-11-07 21:46:14 +03:00
Loading changes detected in scratch.u.
2023-11-07 21:46:14 +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:
foo : Nat
```
``` ucm
scratch/main> update
2023-11-07 21:46:14 +03:00
2023-11-14 06:36:03 +03:00
Okay, I'm searching the branch for code that needs to be
updated...
That's done. Now I'm making sure everything typechecks...
Everything typechecks, so I'm saving the results...
Done.
scratch/main> view bar
2023-11-07 21:46:14 +03:00
bar : Nat
bar =
use Nat +
foo + 10
```