pretty_abbrev: read abbreviation more directly;
authorwenzelm
Mon, 18 Apr 2011 23:41:15 +0200
changeset 42399 95b17b4901b5
parent 42398 919e17c0358e
child 42400 26c8c9cabb24
pretty_abbrev: read abbreviation more directly;
src/Pure/Thy/thy_output.ML
--- a/src/Pure/Thy/thy_output.ML	Mon Apr 18 20:40:31 2011 +0200
+++ b/src/Pure/Thy/thy_output.ML	Mon Apr 18 23:41:15 2011 +0200
@@ -498,7 +498,7 @@
 
 fun pretty_abbrev ctxt s =
   let
-    val t = Syntax.parse_term ctxt s |> singleton (Proof_Context.standard_infer_types ctxt);
+    val t = Syntax.read_term (Proof_Context.set_mode Proof_Context.mode_abbrev ctxt) s;
     fun err () = error ("Abbreviated constant expected: " ^ Syntax.string_of_term ctxt t);
     val (head, args) = Term.strip_comb t;
     val (c, T) = Term.dest_Const head handle TERM _ => err ();