unison/unison-src/transcripts/cycle-update-3.md
Greg Pfeil 75c228f4e1
Use CommonMark-compatible info strings everywhere
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.
2024-10-08 14:23:34 -06:00

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
```