added the_params;
authorwenzelm
Sun, 22 Jan 2006 18:45:59 +0100
changeset 18742 b38a18c9aed9
parent 18741 ada43d36eaf7
child 18743 7ff2934480c9
added the_params;
src/Pure/Isar/locale.ML
--- a/src/Pure/Isar/locale.ML	Sun Jan 22 18:45:58 2006 +0100
+++ b/src/Pure/Isar/locale.ML	Sun Jan 22 18:45:59 2006 +0100
@@ -41,6 +41,7 @@
 
   val intern: theory -> xstring -> string
   val extern: theory -> string -> xstring
+  val the_params: theory -> string -> (string * typ) list
   val init: string -> theory -> Proof.context
 
   (* Processing of locale statements *)  (* FIXME export more abstract version *)
@@ -318,6 +319,10 @@
     SOME loc => loc
   | NONE => error ("Unknown locale " ^ quote name));
 
+fun the_params thy name =
+  let val {params = (ps, _), ...} = the_locale thy name
+  in map fst ps end;
+
 
 (* access registrations *)