mirror of
https://github.com/unisonweb/unison.git
synced 2024-11-10 20:00:27 +03:00
3.0 KiB
3.0 KiB
Deleting term and type replacements from patches
x = 1
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`:
x : ##Nat
.> add
⍟ I've added these definitions:
x : ##Nat
x = 2
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:
x : ##Nat
.> update
⍟ I've updated these names to your new definition:
x : ##Nat
.> view.patch
Edited Terms: 1. x#gjmq673r1v -> 2. x
Tip: To remove entries from a patch, use
delete.term-replacement or delete.type-replacement, as
appropriate.
.> delete.term-replacement 1
Done.
.> view.patch
This patch is empty.
unique[a] type Foo = Foo
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`:
unique type Foo
.> add
⍟ I've added these definitions:
unique type Foo
unique[b] type Foo = Foo | Bar
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:
unique type Foo
.> update
⍟ I've updated these names to your new definition:
unique type Foo
.> view.patch
Edited Types: 1. Foo#ool30cf4ma -> 2. Foo
Tip: To remove entries from a patch, use
delete.term-replacement or delete.type-replacement, as
appropriate.
.> delete.type-replacement 1
Done.
.> view.patch
This patch is empty.
bar = 3
unique[aa] type bar = Foo
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`:
unique type bar
bar : ##Nat
.> add
⍟ I've added these definitions:
unique type bar
bar : ##Nat
unique[bb] type bar = Foo | Bar
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:
unique type bar
.> update
⍟ I've updated these names to your new definition:
unique type bar
.> view.patch
Edited Types: 1. bar#evhqg163jj -> 2. bar
Tip: To remove entries from a patch, use
delete.term-replacement or delete.type-replacement, as
appropriate.
.> delete.type-replacement 1
Done.
.> view.patch
This patch is empty.