mirror of
https://github.com/anoma/juvix.git
synced 2024-12-14 17:32:00 +03:00
3fbc9c7c55
Closes #1644 #1635
25 lines
317 B
Plaintext
25 lines
317 B
Plaintext
module M;
|
|
|
|
type Bool :=
|
|
true : Bool
|
|
| false : Bool;
|
|
|
|
type T :=
|
|
t : T;
|
|
|
|
type Nat :=
|
|
zero : Nat
|
|
| suc : Nat → Nat;
|
|
|
|
f : _;
|
|
f false false := true;
|
|
f true _ := false;
|
|
|
|
type Pair (A : Type) (B : Type) :=
|
|
mkPair : A → B → Pair A B;
|
|
|
|
g : _;
|
|
g (mkPair (mkPair zero false) true) := mkPair false zero;
|
|
|
|
end;
|