1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-14 17:32:00 +03:00
juvix/tests/positive/MiniC/Lib/Data/Bool.juvix

18 lines
243 B
Plaintext

module Data.Bool;
open import Data.String;
type Bool :=
true : Bool
| false : Bool;
not : Bool → Bool;
not true := false;
not false := true;
boolToStr : Bool → String;
boolToStr true := "true";
boolToStr false := "false";
end;