mirror of
https://github.com/anoma/juvix.git
synced 2024-12-15 01:52:11 +03:00
3fbc9c7c55
Closes #1644 #1635
21 lines
340 B
Plaintext
21 lines
340 B
Plaintext
module Data.Bool;
|
|
type Bool :=
|
|
true : Bool |
|
|
false : Bool;
|
|
|
|
not : Bool → Bool;
|
|
not true := false;
|
|
not false := true;
|
|
|
|
-- infixr 2 ||;
|
|
-- || : Bool → Bool → Bool;
|
|
-- || false a := a;
|
|
-- || true _ := true;
|
|
|
|
-- infixr 2 &&;
|
|
-- && : Bool → Bool → Bool;
|
|
-- && false _ := false;
|
|
-- && true a := a;
|
|
|
|
end;
|