unison/unison-src/transcripts/update-type-add-constructor.output.md

73 lines
1.4 KiB
Markdown
Raw Permalink Normal View History

``` unison
2023-11-08 17:33:42 +03:00
unique type Foo
2023-11-08 17:16:19 +03:00
= Bar Nat
```
``` ucm
2023-11-08 17:16:19 +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`:
type Foo
2023-11-08 17:16:19 +03:00
```
``` ucm
scratch/main> add
2023-11-08 17:16:19 +03:00
⍟ I've added these definitions:
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
| Baz Nat Nat
```
``` ucm
2023-11-08 17:16:19 +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:
type Foo
2023-11-08 17:16:19 +03:00
```
``` ucm
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.
scratch/main> view Foo
2023-11-08 17:16:19 +03:00
type Foo = Bar Nat | Baz Nat Nat
2023-11-08 17:16:19 +03:00
scratch/main> find.verbose
2023-11-08 17:16:19 +03:00
2023-11-08 17:33:42 +03:00
1. -- #2sffq4apsq1cts53njcunj63fa8ohov4eqn77q14s77ajicajh4g28sq5s5ai33f2k6oh6o67aarnlpu7u7s4la07ag2er33epalsog
type Foo
2023-11-08 17:16:19 +03:00
2023-11-08 17:33:42 +03:00
2. -- #2sffq4apsq1cts53njcunj63fa8ohov4eqn77q14s77ajicajh4g28sq5s5ai33f2k6oh6o67aarnlpu7u7s4la07ag2er33epalsog#0
2023-11-08 17:16:19 +03:00
Foo.Bar : Nat -> Foo
2023-11-08 17:33:42 +03:00
3. -- #2sffq4apsq1cts53njcunj63fa8ohov4eqn77q14s77ajicajh4g28sq5s5ai33f2k6oh6o67aarnlpu7u7s4la07ag2er33epalsog#1
2023-11-08 17:16:19 +03:00
Foo.Baz : Nat -> Nat -> Foo
```