Open
Description
In ucm 0.5.40 and earlier, we see a different serialized output from serial-test-04.md
depending on whether the mkTestCase
definition is in the latest type checked unison file or not. 1
e.g.
``` unison :hide
mutual0 = cases
0 -> "okay"
n ->
_ = openFile
mutual1 (drop n 1)
mutual1 n =
mutual0 n
mkTestCase = do
saveTestCase "case-04" "v4" mutual1 5
```
``` ucm
scratch/main> run mkTestCase
```
produces a larger serialized output than
``` unison :hide
mutual0 = cases
0 -> "okay"
n ->
_ = openFile
mutual1 (drop n 1)
mutual1 n =
mutual0 n
mkTestCase = do
saveTestCase "case-04" "v4" mutual1 5
```
``` ucm
scratch/main> add
```
``` unison
x = 17
```
```ucm
scratch/main> run mkTestCase
```
Why is the serialized output bigger than it needs to be?
Footnotes
-
This showed up while testing make
add
an alias ofupdate
#5705, which replacedadd
withupdate
, becauseupdate
clears the TUF whileadd
didn't. ↩
Metadata
Metadata
Assignees
Labels
No labels