unison/unison-src/transcripts/update-type-add-new-record.output.md

34 lines
606 B
Markdown
Raw Permalink Normal View History

``` unison
2023-11-23 00:31:05 +03:00
unique type Foo = { bar : Nat }
```
``` ucm
2023-11-23 00:31:05 +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`:
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
```
``` ucm
scratch/main> update
2023-11-23 00:31:05 +03:00
Okay, I'm searching the branch for code that needs to be
updated...
Done.
2023-11-23 00:31:05 +03:00
scratch/main> view Foo
2023-11-23 00:31:05 +03:00
type Foo = { bar : Nat }
2023-11-23 00:31:05 +03:00
```