unison/unison-src/transcripts/cycle-update-2.md
2024-06-25 11:11:07 -07:00

333 B

Update a member of a cycle with a type-preserving update, but sever the cycle.

scratch/main> builtins.merge
ping : 'Nat
ping _ = !pong + 1

pong : 'Nat
pong _ = !ping + 2
scratch/main> add
ping : 'Nat
ping _ = 3
scratch/main> update
scratch/main> view ping pong