unison/unison-src/transcripts/update-type-turn-non-record-into-record.output.md

82 lines
1.8 KiB
Markdown
Raw Permalink Normal View History

``` unison
2023-11-08 17:33:42 +03:00
unique type Foo = Nat
```
``` ucm
2023-11-08 17:33:42 +03:00
Loading changes detected in scratch.u.
2023-11-08 17:33:42 +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:33:42 +03:00
```
``` ucm
scratch/main> add
2023-11-08 17:33:42 +03:00
⍟ I've added these definitions:
type Foo
2023-11-08 17:33:42 +03:00
```
``` unison
2023-11-08 17:33:42 +03:00
unique type Foo = { bar : Nat }
```
``` ucm
2023-11-08 17:33:42 +03:00
Loading changes detected in scratch.u.
2023-11-08 17:33:42 +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`:
Foo.bar : Foo -> Nat
Foo.bar.modify : (Nat ->{g} Nat) -> Foo ->{g} Foo
Foo.bar.set : Nat -> Foo -> Foo
⍟ These names already exist. You can `update` them to your
new definition:
type Foo
2023-11-08 17:33:42 +03:00
```
``` ucm
scratch/main> update
2023-11-08 17:33:42 +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:33:42 +03:00
Done.
scratch/main> view Foo
2023-11-08 17:33:42 +03:00
type Foo = { bar : Nat }
2023-11-08 17:33:42 +03:00
scratch/main> find.verbose
2023-11-08 17:33:42 +03:00
1. -- #b509v3eg4kehsg29g6pvrogeb71ue32nm2fj9284n4i7lprsr7u9a7g6s695d09du0fsfti6rrsk1s62q5thpr1jjkqb3us3s0lrd60
type Foo
2023-11-08 17:33:42 +03:00
2. -- #ovhevqfin94qhq5fu0mujfi20mbpvg5mh4vsfklrohp84cch4lhvrn5p29cnbsqfm92l7bt8c1vpjooh72a0psbddvvten4gq2sipag
Foo.bar : Foo -> Nat
3. -- #as72md2u70e0u9s2ig2ug7jvlbrk1mubo8qlfokpuvgusg35svh05r7nsj27sqo5edeghjnk8g8259fi4ismse736v4n5ojrb3o2le8
Foo.bar.modify : (Nat ->{g} Nat) -> Foo ->{g} Foo
4. -- #5cbctoor75nbtn4ppp10qm1i25gqt2lgth3itqa0lloib32je4ijfj2n3qcdfhmdcnbgum2jg46opntlohv7ladun3dmefl1ucgobeg
Foo.bar.set : Nat -> Foo -> Foo
5. -- #b509v3eg4kehsg29g6pvrogeb71ue32nm2fj9284n4i7lprsr7u9a7g6s695d09du0fsfti6rrsk1s62q5thpr1jjkqb3us3s0lrd60#0
Foo.Foo : Nat -> Foo
```