tuned signature;
authorwenzelm
Fri, 01 Jun 2018 11:50:20 +0200
changeset 68346 b44010800a19
parent 68345 5bc1e1ac7955
child 68347 9e6e7ab77434
tuned signature;
src/Pure/Thy/export_theory.scala
--- a/src/Pure/Thy/export_theory.scala	Fri Jun 01 11:10:22 2018 +0200
+++ b/src/Pure/Thy/export_theory.scala	Fri Jun 01 11:50:20 2018 +0200
@@ -60,6 +60,8 @@
 
   /** theory content **/
 
+  val export_prefix: String = "theory/"
+
   sealed case class Theory(name: String, parents: List[String],
     types: List[Type],
     consts: List[Const],
@@ -100,7 +102,7 @@
     cache: Option[Term.Cache] = None): Theory =
   {
     val parents =
-      Export.read_entry(db, session_name, theory_name, "theory/parents") match {
+      Export.read_entry(db, session_name, theory_name, export_prefix + "parents") match {
         case Some(entry) => split_lines(entry.uncompressed().text)
         case None =>
           error("Missing theory export in session " + quote(session_name) + ": " +
@@ -147,7 +149,7 @@
   def read_export[A](db: SQL.Database, session_name: String, theory_name: String,
     export_name: String, decode: XML.Body => List[A]): List[A] =
   {
-    Export.read_entry(db, session_name, theory_name, "theory/" + export_name) match {
+    Export.read_entry(db, session_name, theory_name, export_prefix + export_name) match {
       case Some(entry) => decode(entry.uncompressed_yxml())
       case None => Nil
     }