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

84 lines
1.7 KiB
Markdown
Raw Permalink Normal View History

``` unison
2023-11-08 17:33:42 +03:00
unique type Foo = Bar Nat
unique type Baz = Qux Foo
2023-11-08 17:16:19 +03:00
```
``` 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 Baz
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 Baz
type Foo
2023-11-08 17:16:19 +03:00
```
``` unison
2023-11-08 17:33:42 +03:00
unique type Foo = Bar Nat Nat
2023-11-08 17:16:19 +03:00
```
``` 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...
That's done. Now I'm making sure everything typechecks...
Everything typechecks, so I'm saving the results...
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 Nat
2023-11-08 17:16:19 +03:00
scratch/main> view Baz
2023-11-08 17:16:19 +03:00
type Baz = Qux Foo
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. -- #34msh9satlfog576493eo9pkjn6aj7d8fj6jfheglvgr5s39iptb81649bpkad1lqraheqb8em9ms551k01oternhknc4m7jicgtk08
type Baz
2023-11-08 17:16:19 +03:00
2023-11-08 17:33:42 +03:00
2. -- #34msh9satlfog576493eo9pkjn6aj7d8fj6jfheglvgr5s39iptb81649bpkad1lqraheqb8em9ms551k01oternhknc4m7jicgtk08#0
2023-11-08 17:16:19 +03:00
Baz.Qux : Foo -> Baz
2023-11-08 17:33:42 +03:00
3. -- #8fk6k0j208th1ia4vnjtoc5fomd6le540prec255svg71bcfga9dofrvoq1d7v6010d6b6em4q51p8st5c5juhrev72cnnel8ko3o1g
type Foo
2023-11-08 17:16:19 +03:00
2023-11-08 17:33:42 +03:00
4. -- #8fk6k0j208th1ia4vnjtoc5fomd6le540prec255svg71bcfga9dofrvoq1d7v6010d6b6em4q51p8st5c5juhrev72cnnel8ko3o1g#0
2023-11-08 17:16:19 +03:00
Foo.Bar : Nat -> Nat -> Foo
```