mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-17 13:27:30 +03:00
1.2 KiB
1.2 KiB
scratch/main> builtins.merge
Done.
test> foo = []
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`:
foo : [Result]
Now evaluating any watch expressions (lines starting with
`>`)... Ctrl+C cancels.
1 | test> foo = []
After adding the test foo
, we expect view
to render it like a test. (Bug: It doesn't.)
scratch/main> add
⍟ I've added these definitions:
foo : [Result]
scratch/main> view foo
foo : [Result]
foo = []
foo = 1
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 names already exist. You can `update` them to your
new definition:
foo : Nat
After updating foo
to not be a test, we expect view
to not render it like a test.
scratch/main> update
Okay, I'm searching the branch for code that needs to be
updated...
Done.
scratch/main> view foo
foo : Nat
foo = 1