diff Paper/src/AgdaInterface.agda @ 6:4312a27022d1

fix
author ryokka
date Mon, 23 Apr 2018 18:11:46 +0900
parents 576637483425
children
line wrap: on
line diff
--- a/Paper/src/AgdaInterface.agda	Sun Apr 22 20:53:49 2018 +0900
+++ b/Paper/src/AgdaInterface.agda	Mon Apr 23 18:11:46 2018 +0900
@@ -1,12 +1,7 @@
-data Maybe {n : Level } (a : Set n) : Set n where
-  Nothing : Maybe a
-  Just    : a -> Maybe a
-
 record StackMethods {n m : Level } (a : Set n ) {t : Set m }(stackImpl : Set n ) : Set (m Level.⊔ n) where
   field
     push : stackImpl -> a -> (stackImpl -> t) -> t
     pop  : stackImpl -> (stackImpl -> Maybe a -> t) -> t
-    get  : stackImpl -> (stackImpl -> Maybe a -> t) -> t
 open StackMethods
 
 record Stack {n m : Level } (a : Set n ) {t : Set m } (si : Set n ) : Set (m Level.⊔ n) where
@@ -17,6 +12,4 @@
   pushStack d next = push (stackMethods ) (stack ) d (\s1 -> next (record {stack = s1 ; stackMethods = stackMethods } ))
   popStack : (Stack a si -> Maybe a  -> t) -> t
   popStack next = pop (stackMethods ) (stack ) (\s1 d1 -> next (record {stack = s1 ; stackMethods = stackMethods }) d1 )
-  getStack :  (Stack a si -> Maybe a  -> t) -> t
-  getStack next = get (stackMethods ) (stack ) (\s1 d1 -> next (record {stack = s1 ; stackMethods = stackMethods }) d1 )
 open Stack