-
Notifications
You must be signed in to change notification settings - Fork 272
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 #5270 from unisonweb/arya/fix-3424
- Loading branch information
Showing
3 changed files
with
78 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
```ucm | ||
scratch/main> builtins.merge lib.builtins | ||
``` | ||
|
||
```unison:hide | ||
a = do b | ||
b = "Hello, " ++ c ++ "!" | ||
c = "World" | ||
``` | ||
|
||
```ucm | ||
scratch/main> add | ||
scratch/main> run a | ||
``` | ||
|
||
```unison:hide | ||
a = do b | ||
c = "Unison" | ||
``` | ||
|
||
```ucm | ||
scratch/main> update | ||
scratch/main> run a | ||
``` | ||
|
||
The result should be "Hello, Unison!". |
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,50 @@ | ||
``` ucm | ||
scratch/main> builtins.merge lib.builtins | ||
Done. | ||
``` | ||
``` unison | ||
a = do b | ||
b = "Hello, " ++ c ++ "!" | ||
c = "World" | ||
``` | ||
|
||
``` ucm | ||
scratch/main> add | ||
⍟ I've added these definitions: | ||
a : 'Text | ||
b : Text | ||
c : Text | ||
scratch/main> run a | ||
"Hello, World!" | ||
``` | ||
``` unison | ||
a = do b | ||
c = "Unison" | ||
``` | ||
|
||
``` ucm | ||
scratch/main> update | ||
Okay, I'm searching the branch for code that needs to be | ||
updated... | ||
That's done. Now I'm making sure everything typechecks... | ||
Everything typechecks, so I'm saving the results... | ||
Done. | ||
scratch/main> run a | ||
"Hello, Unison!" | ||
``` | ||
The result should be "Hello, Unison\!". | ||
|