Mercurial > hg > Papers > 2019 > oshiro-thesis
annotate final_pre/src/AgdaInterface.agda @ 7:0e8b9646d43f
add final_pre
author | e155702 |
---|---|
date | Sun, 17 Feb 2019 05:39:59 +0900 |
parents | |
children |
rev | line source |
---|---|
7 | 1 record Stack {n m : Level } (a : Set n ) {t : Set m } (si : Set n ) : Set (m Level.⊔ n) where |
2 field | |
3 stack : si | |
4 stackMethods : StackMethods {n} {m} a {t} si | |
5 pushStack : a -> (Stack a si -> t) -> t | |
6 pushStack d next = push (stackMethods ) (stack ) d (\s1 -> next (record {stack = s1 ; stackMethods = stackMethods } )) |