src/Pure/type_infer.ML
changeset 42386 50ea65e84d98
parent 42383 0ae4ad40d7b5
child 42400 26c8c9cabb24
--- a/src/Pure/type_infer.ML	Mon Apr 18 12:04:21 2011 +0200
+++ b/src/Pure/type_infer.ML	Mon Apr 18 12:11:58 2011 +0200
@@ -217,10 +217,10 @@
 
 exception NO_UNIFIER of string * typ Vartab.table;
 
-fun unify ctxt pp =
+fun unify ctxt =
   let
     val thy = Proof_Context.theory_of ctxt;
-    val arity_sorts = Type.arity_sorts pp (Sign.tsig_of thy);
+    val arity_sorts = Type.arity_sorts (Context.pretty ctxt) (Sign.tsig_of thy);
 
 
     (* adjust sorts of parameters *)
@@ -289,9 +289,6 @@
 
 fun infer ctxt =
   let
-    val pp = Context.pretty ctxt;
-
-
     (* errors *)
 
     fun prep_output tye bs ts Ts =
@@ -328,7 +325,7 @@
             val (T, tye_idx') = inf bs t tye_idx;
             val (U, (tye, idx)) = inf bs u tye_idx';
             val V = mk_param idx [];
-            val tye_idx'' = unify ctxt pp (U --> V, T) (tye, idx + 1)
+            val tye_idx'' = unify ctxt (U --> V, T) (tye, idx + 1)
               handle NO_UNIFIER (msg, tye') => err_appl msg tye' bs t T u U;
           in (V, tye_idx'') end;