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.
53 lines
664 B
Markdown
53 lines
664 B
Markdown
``` unison
|
|
{{ Type doc }}
|
|
structural type Optional a =
|
|
None
|
|
| Some a
|
|
|
|
{{
|
|
Multi line
|
|
|
|
Term doc
|
|
}}
|
|
List.map :
|
|
(a -> b)
|
|
-> [a]
|
|
-> [b]
|
|
List.map f = cases
|
|
(x +: xs) -> f x +: List.map f xs
|
|
[] -> []
|
|
|
|
test> z = let
|
|
x = "hello"
|
|
y = "world"
|
|
[Ok (x ++ y)]
|
|
```
|
|
|
|
``` ucm
|
|
scratch/main> debug.lsp.fold-ranges
|
|
|
|
《{{ Type doc }}》
|
|
《structural type Optional a =
|
|
None
|
|
| Some a》
|
|
|
|
《{{
|
|
Multi line
|
|
|
|
Term doc
|
|
}}》
|
|
《List.map :
|
|
(a -> b)
|
|
-> [a]
|
|
-> [b]
|
|
List.map f = cases
|
|
(x +: xs) -> f x +: List.map f xs
|
|
[] -> []》
|
|
|
|
《test> z = let
|
|
x = "hello"
|
|
y = "world"
|
|
[Ok (x ++ y)]》
|
|
|
|
```
|