mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-19 06:17:33 +03:00
23 lines
269 B
Markdown
23 lines
269 B
Markdown
```ucm:hide
|
|
scratch/main> builtins.merge lib.builtin
|
|
```
|
|
|
|
```unison
|
|
unique type Foo = Bar Nat
|
|
|
|
incrFoo : Foo -> Foo
|
|
incrFoo = cases Bar n -> Bar (n+1)
|
|
```
|
|
|
|
```ucm
|
|
scratch/main> add
|
|
```
|
|
|
|
```unison
|
|
unique type Foo = Bar Nat Nat
|
|
```
|
|
|
|
```ucm:error
|
|
scratch/main> update
|
|
```
|