mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-11 10:35:57 +03:00
28 lines
334 B
Markdown
28 lines
334 B
Markdown
```ucm:hide
|
|
scratch/main> builtins.merge
|
|
```
|
|
|
|
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
|
|
```
|
|
|
|
Now I want to add a constructor.
|
|
|
|
```unison:hide
|
|
unique type Rat.Dog = Bird | Mouse
|
|
```
|
|
|
|
```ucm
|
|
scratch/main> update
|
|
```
|