annotate final_pre/src/AgdaInterface.agda @ 7:0e8b9646d43f

add final_pre
author e155702
date Sun, 17 Feb 2019 05:39:59 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
0e8b9646d43f add final_pre
e155702
parents:
diff changeset
1 record Stack {n m : Level } (a : Set n ) {t : Set m } (si : Set n ) : Set (m Level.⊔ n) where
0e8b9646d43f add final_pre
e155702
parents:
diff changeset
2 field
0e8b9646d43f add final_pre
e155702
parents:
diff changeset
3 stack : si
0e8b9646d43f add final_pre
e155702
parents:
diff changeset
4 stackMethods : StackMethods {n} {m} a {t} si
0e8b9646d43f add final_pre
e155702
parents:
diff changeset
5 pushStack : a -> (Stack a si -> t) -> t
0e8b9646d43f add final_pre
e155702
parents:
diff changeset
6 pushStack d next = push (stackMethods ) (stack ) d (\s1 -> next (record {stack = s1 ; stackMethods = stackMethods } ))