mirror of
https://github.com/anoma/juvix.git
synced 2025-01-08 16:51:53 +03:00
7431d808a5
As the title says. - I found this bug while formatting the examples found in the tests folder. - In addition to printing the missing positive' keyword for data types, the code also prints certain keyword annotations onto separate lines, the ones that act as attributes to their term. While this is a matter of personal preference, I find that it makes it easier to comment and uncomment individual annotations.
12 lines
180 B
Plaintext
12 lines
180 B
Plaintext
module BuiltinsBool;
|
|
|
|
builtin bool
|
|
type Bool :=
|
|
| true : Bool
|
|
| false : Bool;
|
|
|
|
builtin bool-if
|
|
if : {A : Type} → Bool → A → A → A;
|
|
if true t _ := t;
|
|
if false _ e := e;
|