mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-11 10:35:57 +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.
44 lines
608 B
Markdown
44 lines
608 B
Markdown
``` unison
|
|
structural type M a = N | J a
|
|
|
|
d = {{
|
|
|
|
{{ docExample 0 '(x -> J x) }}
|
|
|
|
{J}
|
|
|
|
}}
|
|
```
|
|
|
|
``` 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`:
|
|
|
|
structural type M a
|
|
(also named builtin.Optional)
|
|
d : Doc2
|
|
|
|
```
|
|
``` ucm
|
|
scratch/main> add
|
|
|
|
⍟ I've added these definitions:
|
|
|
|
structural type M a
|
|
(also named builtin.Optional)
|
|
d : Doc2
|
|
|
|
scratch/main> display d
|
|
|
|
`x -> J x`
|
|
|
|
J
|
|
|
|
```
|