-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4502 from unisonweb/travis/tdnr-bug
- Loading branch information
Showing
4 changed files
with
125 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
```ucm:hide | ||
.> builtins.merge | ||
``` | ||
|
||
```unison | ||
lib.dep0.bonk.foo = 5 | ||
lib.dep0.zonk.foo = "hi" | ||
lib.dep0.lib.dep1.foo = 6 | ||
myterm = foo + 2 | ||
``` | ||
|
||
```ucm | ||
.> add | ||
.> view myterm | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
```unison | ||
lib.dep0.bonk.foo = 5 | ||
lib.dep0.zonk.foo = "hi" | ||
lib.dep0.lib.dep1.foo = 6 | ||
myterm = foo + 2 | ||
``` | ||
|
||
```ucm | ||
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`: | ||
lib.dep0.bonk.foo : Nat | ||
lib.dep0.lib.dep1.foo : Nat | ||
lib.dep0.zonk.foo : Text | ||
myterm : Nat | ||
``` | ||
```ucm | ||
.> add | ||
⍟ I've added these definitions: | ||
lib.dep0.bonk.foo : Nat | ||
lib.dep0.lib.dep1.foo : Nat | ||
lib.dep0.zonk.foo : Text | ||
myterm : Nat | ||
.> view myterm | ||
myterm : Nat | ||
myterm = | ||
use Nat + | ||
bonk.foo + 2 | ||
``` |