more robust pretty_term_typ, using well-typed parse tree representation;
authorwenzelm
Fri, 05 May 2006 21:59:49 +0200
changeset 19581 4ae6a14b742f
parent 19580 c878a09fb849
child 19582 a669c98b9c24
more robust pretty_term_typ, using well-typed parse tree representation;
src/Pure/Isar/isar_output.ML
--- a/src/Pure/Isar/isar_output.ML	Fri May 05 21:59:48 2006 +0200
+++ b/src/Pure/Isar/isar_output.ML	Fri May 05 21:59:49 2006 +0200
@@ -439,10 +439,7 @@
 fun pretty_term ctxt = ProofContext.pretty_term ctxt o ProofContext.extern_skolem ctxt;
 
 fun pretty_term_typ ctxt t =
-  (Syntax.const Syntax.constrainC $
-    ProofContext.extern_skolem ctxt t $
-    Syntax.term_of_typ (! show_sorts) (Term.fastype_of t))
-  |> ProofContext.pretty_term ctxt;
+  ProofContext.pretty_term ctxt (TypeInfer.constrain t (Term.fastype_of t));
 
 fun pretty_term_typeof ctxt = ProofContext.pretty_typ ctxt o Term.fastype_of;