Sorts.of_sort_derivation: no pp here;
authorwenzelm
Wed, 30 Sep 2009 23:30:37 +0200
changeset 32795 a0f38d8d633a
parent 32794 7b100d30eb32
child 32796 2e4485b9a39f
Sorts.of_sort_derivation: no pp here;
src/Tools/Code/code_preproc.ML
src/Tools/Code/code_thingol.ML
--- a/src/Tools/Code/code_preproc.ML	Wed Sep 30 23:28:54 2009 +0200
+++ b/src/Tools/Code/code_preproc.ML	Wed Sep 30 23:30:37 2009 +0200
@@ -403,7 +403,7 @@
         @ (maps o maps) fst xs;
     fun type_variable (TFree (_, sort)) = map (pair []) (proj_sort sort);
   in
-    flat (Sorts.of_sort_derivation (Syntax.pp_global thy) algebra
+    flat (Sorts.of_sort_derivation algebra
       { class_relation = class_relation, type_constructor = type_constructor,
         type_variable = type_variable } (T, proj_sort sort)
        handle Sorts.CLASS_ERROR _ => [] (*permissive!*))
--- a/src/Tools/Code/code_thingol.ML	Wed Sep 30 23:28:54 2009 +0200
+++ b/src/Tools/Code/code_thingol.ML	Wed Sep 30 23:30:37 2009 +0200
@@ -750,7 +750,6 @@
   #>> (fn sort => (unprefix "'" v, sort))
 and translate_dicts thy (algbr as (proj_sort, algebra)) funcgr thm (ty, sort) =
   let
-    val pp = Syntax.pp_global thy;
     datatype typarg =
         Global of (class * string) * typarg list list
       | Local of (class * class) list * (string * (int * sort));
@@ -764,7 +763,7 @@
       let
         val sort' = proj_sort sort;
       in map_index (fn (n, class) => (Local ([], (v, (n, sort'))), class)) sort' end;
-    val typargs = Sorts.of_sort_derivation pp algebra
+    val typargs = Sorts.of_sort_derivation algebra
       {class_relation = class_relation, type_constructor = type_constructor,
        type_variable = type_variable} (ty, proj_sort sort)
       handle Sorts.CLASS_ERROR e => not_wellsorted thy thm ty sort e;