-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Closes #3192. The first pipe is ensured in a multi-clause lambda. 3. Bugfix: Pragmas are now properly printed for deriving statements. Previously they were never printed. 4. Record types are always declared in a new line, even if they have a single constructor and fit in a line. I think this change improves readability. ``` -- before type Eq A := mkEq@{builtin isEqual eq : A -> A -> Bool}; -- after type Eq A := mkEq@{ builtin isEqual eq : A -> A -> Bool; }; ``` 5. I've formatted the stdlib (anoma/juvix-stdlib#150). 6. I've refactored some code related to adding the first pipe so that it is reused for cases, lambdas and types. 7. Now `ConstructorDef` has a proper `PrettyCode` instance and does not need to be passed a bool indicating whether it is the only constructor in a definition.
- Loading branch information
1 parent
cc263e7
commit bf06cb1
Showing
14 changed files
with
149 additions
and
78 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
Submodule juvix-stdlib
updated
5 files
+1 −2 | Stdlib/Data/Result.juvix | |
+5 −1 | Stdlib/Trait/Eq.juvix | |
+5 −1 | Stdlib/Trait/Ord.juvix | |
+4 −1 | Stdlib/Trait/Partial.juvix | |
+4 −1 | Stdlib/Trait/Show.juvix |
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
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 |
---|---|---|
@@ -1,7 +1,10 @@ | ||
module M; | ||
|
||
trait | ||
type T A := mkT@{pp : A → A}; | ||
type T A := | ||
mkT@{ | ||
pp : A → A; | ||
}; | ||
|
||
type Unit := unit; | ||
|
||
|
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
Oops, something went wrong.