1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-15 18:13:56 +03:00
juvix/tests/positive/issue1693/M.juvix

23 lines
455 B
Plaintext
Raw Normal View History

2023-01-09 20:56:28 +03:00
module M;
open import Stdlib.Prelude;
S : {A : Type} → {B : Type} → {C : Type} → (A → B → C) → (A → B) → A → C;
S x y z := x z (y z);
K : {A : Type} → {B : Type} → A → B → A;
K x y := x;
I : {A : Type} → A → A;
I := S K (K {_} {Bool});
main : IO;
main := printNatLn
$ I {Nat} 1
+ I I 1
+ I (I 1)
+ I 1
+ I (I I) I (I I I) 1
+ I I I (I I I (I I)) I (I I) I I I 1;
2023-01-17 11:41:07 +03:00
2023-01-09 20:56:28 +03:00
end;