mirror of
https://github.com/unisonweb/unison.git
synced 2024-10-26 02:55:19 +03:00
75c228f4e1
The bulk of this updates transcripts to put spaces around the language name in code blocks. E.g., ```` markdown ```ucm:hide ```` becomes ```` markdown ``` ucm :hide ```` This corresponds to https://share.unison-lang.org/@unison/website/contributions/11, which updates the docs in the same way. This is effectively a fix for #5214, but that issue also has good recommendations for future changes to info strings, so I don’t know that it should be closed.
28 lines
342 B
Markdown
28 lines
342 B
Markdown
Update a member of a cycle with a type-changing update, thus severing the cycle.
|
|
|
|
``` ucm :hide
|
|
scratch/main> builtins.merge
|
|
```
|
|
|
|
``` unison
|
|
ping : 'Nat
|
|
ping _ = !pong + 1
|
|
|
|
pong : 'Nat
|
|
pong _ = !ping + 2
|
|
```
|
|
|
|
``` ucm
|
|
scratch/main> add
|
|
```
|
|
|
|
``` unison
|
|
ping : Nat
|
|
ping = 3
|
|
```
|
|
|
|
``` ucm
|
|
scratch/main> update.old
|
|
scratch/main> view ping pong
|
|
```
|