2024-01-23 22:35:23 +03:00
|
|
|
```ucm:hide
|
2024-06-10 22:49:02 +03:00
|
|
|
project/main> builtins.mergeio lib.builtin
|
2024-01-23 22:35:23 +03:00
|
|
|
```
|
|
|
|
|
2024-06-10 22:49:02 +03:00
|
|
|
```unison
|
2024-01-23 22:35:23 +03:00
|
|
|
{{ ping doc }}
|
|
|
|
nested.cycle.ping n = n Nat.+ pong n
|
|
|
|
|
|
|
|
{{ pong doc }}
|
|
|
|
nested.cycle.pong n = n Nat.+ ping n
|
|
|
|
|
|
|
|
toplevel = "hi"
|
|
|
|
|
|
|
|
simple.x = 10
|
|
|
|
simple.y = 20
|
|
|
|
|
|
|
|
-- Shouldn't edit things in lib
|
|
|
|
lib.project.ignoreMe = 30
|
|
|
|
|
2024-06-10 22:49:02 +03:00
|
|
|
-- Shouldn't render record accessors
|
|
|
|
unique type Foo = { bar : Nat, baz : Nat }
|
2024-01-23 22:35:23 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
```ucm
|
2024-06-10 22:49:02 +03:00
|
|
|
project/main> add
|
2024-01-23 22:35:23 +03:00
|
|
|
```
|
|
|
|
|
2024-06-10 22:49:02 +03:00
|
|
|
`edit.namespace` edits the whole namespace (minus the top-level `lib`).
|
2024-01-23 22:35:23 +03:00
|
|
|
|
|
|
|
```ucm
|
2024-06-10 22:49:02 +03:00
|
|
|
project/main> edit.namespace
|
2024-01-23 22:35:23 +03:00
|
|
|
```
|
|
|
|
|
2024-06-10 22:49:02 +03:00
|
|
|
`edit.namespace` can also accept explicit paths
|
2024-01-23 22:35:23 +03:00
|
|
|
|
|
|
|
```ucm
|
2024-06-10 22:49:02 +03:00
|
|
|
project/main> edit.namespace nested simple
|
2024-01-23 22:35:23 +03:00
|
|
|
```
|