unison/unison-src/transcripts/fix1390.output.md
Greg Pfeil 0031542faf
Add a space before code block info strings
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.
2024-07-10 13:56:07 -06:00

69 lines
1.2 KiB
Markdown

``` ucm
scratch/main> builtins.merge
Done.
```
``` unison
-- List.map : (a -> b) -> [a] -> [b]
List.map f =
go acc = cases
[] -> acc
h +: t -> go (acc :+ f h) t
go []
```
``` 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`:
List.map : (i ->{g} o) -> [i] ->{g} [o]
```
``` ucm
scratch/main> add
⍟ I've added these definitions:
List.map : (i ->{g} o) -> [i] ->{g} [o]
scratch/main> view List.map
List.map : (i ->{g} o) -> [i] ->{g} [o]
List.map f =
go acc = cases
[] -> acc
h +: t -> go (acc :+ f h) t
go []
```
``` unison
List.map2 : (g -> g2) -> [g] -> [g2]
List.map2 f =
unused = "just to give this a different hash"
go acc = cases
[] -> acc
h +: t -> go (acc :+ f h) t
go []
```
``` 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`:
List.map2 : (g ->{h} g2) -> [g] ->{h} [g2]
```