exported specification names
authorhaftmann
Thu, 06 Apr 2006 16:07:44 +0200
changeset 19339 59f08f67ed3f
parent 19338 952b12ebfdff
child 19340 a4fe025ecd90
exported specification names
src/Pure/defs.ML
--- a/src/Pure/defs.ML	Wed Apr 05 17:38:32 2006 +0200
+++ b/src/Pure/defs.ML	Thu Apr 06 16:07:44 2006 +0200
@@ -12,7 +12,7 @@
   val define: (string -> typ) -> (bool * string) * string
     -> string * typ -> (string * typ) list -> T -> T
   val empty: T
-  val specifications_of: T -> string -> (typ * string) list
+  val specifications_of: T -> string -> (typ * (string * string)) list
   val merge: Pretty.pp -> T * T -> T
 end
 
@@ -71,7 +71,7 @@
 fun specifications_of (Defs {specified, ...}) c =
   (List.mapPartial
     (fn (_, (false, _, _, _)) => NONE
-      | (_, (true, _, thyname, ty)) => SOME (ty, thyname)) o Inttab.dest
+      | (_, (true, specname, thyname, ty)) => SOME (ty, (specname, thyname))) o Inttab.dest
     o the_default Inttab.empty o Symtab.lookup specified) c;