Skip to content

Commit 1a59338

Browse files
committed
Add transcript and update existing
1 parent e38eebb commit 1a59338

File tree

5 files changed

+72
-4
lines changed

5 files changed

+72
-4
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
```ucm
2+
scratch/main> builtins.merge lib.builtins
3+
```
4+
5+
```unison:error
6+
missingDo : 'Nat
7+
missingDo = 2
8+
```
9+
10+
```unison:error
11+
superfluousDo : Nat
12+
superfluousDo = do
13+
2
14+
```
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
``` ucm
2+
scratch/main> builtins.merge lib.builtins
3+
4+
Done.
5+
6+
```
7+
``` unison
8+
missingDo : 'Nat
9+
missingDo = 2
10+
```
11+
12+
``` ucm
13+
14+
Loading changes detected in scratch.u.
15+
16+
I found a value of type: Nat
17+
where I expected to find: Unit -> Nat
18+
19+
1 | missingDo : 'Nat
20+
2 | missingDo = 2
21+
22+
from right here:
23+
24+
2 | missingDo = 2
25+
I expected the expression to be delayed, but it was not.
26+
Are you missing a `do`?
27+
28+
```
29+
``` unison
30+
superfluousDo : Nat
31+
superfluousDo = do
32+
2
33+
```
34+
35+
``` ucm
36+
37+
Loading changes detected in scratch.u.
38+
39+
I found a value of type: Unit ->{𝕖} Nat
40+
where I expected to find: Nat
41+
42+
1 | superfluousDo : Nat
43+
2 | superfluousDo = do
44+
3 | 2
45+
46+
from right here:
47+
48+
3 | 2
49+
50+
I didn't expect this expression to be delayed, but it was.
51+
Are you using a `do` where you don't need one,
52+
or are you missing a `()` to force an expression?
53+
54+
```

unison-src/transcripts/fix2354.output.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ x = 'f
1212
1313
Loading changes detected in scratch.u.
1414
15-
I found a value of type: (a1 ->{𝕖} a1) ->{𝕖} Nat
15+
I found a value of type: (a1 ->{𝕖} a1) ->{𝕖} Nat
1616
where I expected to find: (a -> 𝕣1) -> 𝕣
1717
1818
1 | f : (forall a . a -> a) -> Nat

unison-src/transcripts/fix614.output.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ ex2 = do
3737
3838
Loading changes detected in scratch.u.
3939
40-
I found a value of type: a ->{Stream a} Unit
40+
I found a value of type: a ->{Stream a} Unit
4141
where I expected to find: Unit
4242
4343
2 | Stream.emit
@@ -104,7 +104,7 @@ ex4 =
104104
105105
Loading changes detected in scratch.u.
106106
107-
I found a value of type: [Nat]
107+
I found a value of type: [Nat]
108108
where I expected to find: Unit
109109
110110
2 | [1,2,3] -- no good

unison-src/transcripts/hello.output.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ hmm = "Not, in fact, a number"
8484
8585
Loading changes detected in scratch.u.
8686
87-
I found a value of type: Text
87+
I found a value of type: Text
8888
where I expected to find: Nat
8989
9090
1 | hmm : .builtin.Nat

0 commit comments

Comments
 (0)