2020-05-29 05:45:27 +03:00
|
|
|
Tests that functions named `.` are rendered correctly.
|
|
|
|
|
2024-07-10 17:46:18 +03:00
|
|
|
``` unison
|
2024-02-21 23:16:00 +03:00
|
|
|
(`.`) f g x = f (g x)
|
2020-05-29 05:45:27 +03:00
|
|
|
|
2023-02-11 06:51:45 +03:00
|
|
|
use Boolean not
|
|
|
|
|
2024-02-21 23:16:00 +03:00
|
|
|
noop = not `.` not
|
2020-05-29 05:45:27 +03:00
|
|
|
```
|
|
|
|
|
2024-07-10 19:17:15 +03:00
|
|
|
``` ucm
|
2020-05-29 05:45:27 +03:00
|
|
|
|
2023-12-22 14:55:24 +03:00
|
|
|
Loading changes detected in scratch.u.
|
|
|
|
|
2020-05-29 05:45:27 +03:00
|
|
|
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`:
|
|
|
|
|
2024-02-21 23:16:00 +03:00
|
|
|
`.` : (i1 ->{g1} o) -> (i ->{g} i1) -> i ->{g1, g} o
|
2020-05-29 06:27:36 +03:00
|
|
|
noop : Boolean -> Boolean
|
2020-05-29 05:45:27 +03:00
|
|
|
|
|
|
|
```
|
2024-07-10 19:17:15 +03:00
|
|
|
``` ucm
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> add
|
2020-05-29 05:45:27 +03:00
|
|
|
|
|
|
|
⍟ I've added these definitions:
|
|
|
|
|
2024-02-21 23:16:00 +03:00
|
|
|
`.` : (i1 ->{g1} o) -> (i ->{g} i1) -> i ->{g1, g} o
|
2020-05-29 06:27:36 +03:00
|
|
|
noop : Boolean -> Boolean
|
2020-05-29 05:45:27 +03:00
|
|
|
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> view noop
|
2020-05-29 05:45:27 +03:00
|
|
|
|
|
|
|
noop : Boolean -> Boolean
|
2023-02-11 06:51:45 +03:00
|
|
|
noop =
|
|
|
|
use Boolean not
|
2024-02-21 23:16:00 +03:00
|
|
|
not `.` not
|
2020-05-29 05:45:27 +03:00
|
|
|
|
|
|
|
```
|