unison/unison-src/transcripts/update-type-add-constructor.md
2024-06-25 11:11:07 -07:00

25 lines
272 B
Markdown

```ucm:hide
scratch/main> builtins.merge lib.builtin
```
```unison
unique type Foo
= Bar Nat
```
```ucm
scratch/main> add
```
```unison
unique type Foo
= Bar Nat
| Baz Nat Nat
```
```ucm
scratch/main> update
scratch/main> view Foo
scratch/main> find.verbose
```