-
Notifications
You must be signed in to change notification settings - Fork 271
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 #4437 from unisonweb/travis/4424
- Loading branch information
Showing
4 changed files
with
119 additions
and
12 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,27 @@ | ||
```ucm:hide | ||
.> builtins.merge | ||
``` | ||
|
||
Some basics: | ||
|
||
```unison:hide | ||
unique type Cat.Dog = Mouse Nat | ||
unique type Rat.Dog = Bird | ||
countCat = cases | ||
Cat.Dog.Mouse x -> Bird | ||
``` | ||
|
||
```ucm | ||
.> add | ||
``` | ||
|
||
Now I want to add a constructor. | ||
|
||
```unison:hide | ||
unique type Rat.Dog = Bird | Mouse | ||
``` | ||
|
||
```ucm | ||
.> update | ||
``` |
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 @@ | ||
Some basics: | ||
|
||
```unison | ||
unique type Cat.Dog = Mouse Nat | ||
unique type Rat.Dog = Bird | ||
countCat = cases | ||
Cat.Dog.Mouse x -> Bird | ||
``` | ||
|
||
```ucm | ||
.> add | ||
⍟ I've added these definitions: | ||
unique type Cat.Dog | ||
unique type Rat.Dog | ||
countCat : Cat.Dog -> Rat.Dog | ||
``` | ||
Now I want to add a constructor. | ||
|
||
```unison | ||
unique type Rat.Dog = Bird | Mouse | ||
``` | ||
|
||
```ucm | ||
.> 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. | ||
``` |