Changes in generated code, apparently caused by changes to the code generation system itself.
authorpaulson
Mon, 21 Dec 2009 16:50:28 +0000
changeset 34156 3a7937841585
parent 34155 14aaccb399b3
child 34157 0a0a19153626
child 34175 156a060d5d68
Changes in generated code, apparently caused by changes to the code generation system itself.
doc-src/Codegen/Thy/examples/Example.hs
doc-src/Codegen/Thy/examples/example.ML
--- a/doc-src/Codegen/Thy/examples/Example.hs	Mon Dec 21 16:49:04 2009 +0000
+++ b/doc-src/Codegen/Thy/examples/Example.hs	Mon Dec 21 16:50:28 2009 +0000
@@ -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	Mon Dec 21 16:49:04 2009 +0000
+++ b/doc-src/Codegen/Thy/examples/example.ML	Mon Dec 21 16:50:28 2009 +0000
@@ -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;