mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-11 02:25:39 +03:00
This is for consistency with the `cmark` style. Now the blocks we still pretty-print ourselves will match the bulk of them that `cmark` produces.
42 lines
772 B
Markdown
42 lines
772 B
Markdown
``` unison
|
|
lib.dep0.bonk.foo = 5
|
|
lib.dep0.zonk.foo = "hi"
|
|
lib.dep0.lib.dep1.foo = 6
|
|
myterm = foo + 2
|
|
```
|
|
|
|
``` ucm
|
|
|
|
Loading changes detected in scratch.u.
|
|
|
|
I found and typechecked these definitions in scratch.u. If you
|
|
do an `add` or `update`, here's how your codebase would
|
|
change:
|
|
|
|
⍟ These new definitions are ok to `add`:
|
|
|
|
lib.dep0.bonk.foo : Nat
|
|
lib.dep0.lib.dep1.foo : Nat
|
|
lib.dep0.zonk.foo : Text
|
|
myterm : Nat
|
|
|
|
```
|
|
``` ucm
|
|
scratch/main> add
|
|
|
|
⍟ I've added these definitions:
|
|
|
|
lib.dep0.bonk.foo : Nat
|
|
lib.dep0.lib.dep1.foo : Nat
|
|
lib.dep0.zonk.foo : Text
|
|
myterm : Nat
|
|
|
|
scratch/main> view myterm
|
|
|
|
myterm : Nat
|
|
myterm =
|
|
use Nat +
|
|
bonk.foo + 2
|
|
|
|
```
|