updated generated examples
authorhaftmann
Wed, 23 Dec 2009 08:31:14 +0100
changeset 34171 0928909af6aa
parent 34170 254ac75e4c38
child 34172 4301e9ea1c54
updated generated examples
doc-src/Codegen/Thy/examples/Example.hs
doc-src/Codegen/Thy/examples/example.ML
--- a/doc-src/Codegen/Thy/examples/Example.hs	Wed Dec 23 08:31:14 2009 +0100
+++ b/doc-src/Codegen/Thy/examples/Example.hs	Wed Dec 23 08:31:14 2009 +0100
@@ -2,7 +2,6 @@
 
 module Example where {
 
-
 foldla :: forall a b. (a -> b -> a) -> a -> [b] -> a;
 foldla f a [] = a;
 foldla f a (x : xs) = foldla f (f a x) xs;
--- a/doc-src/Codegen/Thy/examples/example.ML	Wed Dec 23 08:31:14 2009 +0100
+++ b/doc-src/Codegen/Thy/examples/example.ML	Wed Dec 23 08:31:14 2009 +0100
@@ -1,5 +1,12 @@
-structure Example = 
-struct
+structure Example : sig
+  val foldl : ('a -> 'b -> 'a) -> 'a -> 'b list -> 'a
+  val rev : 'a list -> 'a list
+  val list_case : 'a -> ('b -> 'b list -> 'a) -> 'b list -> 'a
+  datatype 'a queue = AQueue of 'a list * 'a list
+  val empty : 'a queue
+  val dequeue : 'a queue -> 'a option * 'a queue
+  val enqueue : 'a -> 'a queue -> 'a queue
+end = struct
 
 fun foldl f a [] = a
   | foldl f a (x :: xs) = foldl f (f a x) xs;