unison/unison-src/transcripts/fix4424.md

28 lines
334 B
Markdown
Raw Permalink Normal View History

2023-11-28 21:44:41 +03:00
```ucm:hide
scratch/main> builtins.merge
2023-11-28 21:44:41 +03:00
```
Some basics:
```unison:hide
unique type Cat.Dog = Mouse Nat
unique type Rat.Dog = Bird
countCat = cases
Cat.Dog.Mouse x -> Bird
```
```ucm
scratch/main> add
2023-11-28 21:44:41 +03:00
```
Now I want to add a constructor.
```unison:hide
unique type Rat.Dog = Bird | Mouse
```
```ucm
scratch/main> update
2023-11-28 21:44:41 +03:00
```