src/Pure/display.ML
changeset 26626 c6231d64d264
parent 26423 8408edac8f6b
child 26637 0bfccafc52eb
--- a/src/Pure/display.ML	Thu Apr 10 20:54:18 2008 +0200
+++ b/src/Pure/display.ML	Sat Apr 12 17:00:35 2008 +0200
@@ -109,20 +109,12 @@
 
 (* other printing commands *)
 
-fun pretty_ctyp cT =
-  let val {thy, T, ...} = rep_ctyp cT in Sign.pretty_typ thy T end;
-
-fun string_of_ctyp cT =
-  let val {thy, T, ...} = rep_ctyp cT in Sign.string_of_typ thy T end;
-
+fun pretty_ctyp cT = Sign.pretty_typ (Thm.theory_of_ctyp cT) (Thm.typ_of cT);
+fun string_of_ctyp cT = Sign.string_of_typ (Thm.theory_of_ctyp cT) (Thm.typ_of cT);
 val print_ctyp = writeln o string_of_ctyp;
 
-fun pretty_cterm ct =
-  let val {thy, t, ...} = rep_cterm ct in Sign.pretty_term thy t end;
-
-fun string_of_cterm ct =
-  let val {thy, t, ...} = rep_cterm ct in Sign.string_of_term thy t end;
-
+fun pretty_cterm ct = Sign.pretty_term (Thm.theory_of_cterm ct) (Thm.term_of ct);
+fun string_of_cterm ct = Sign.string_of_term (Thm.theory_of_cterm ct) (Thm.term_of ct);
 val print_cterm = writeln o string_of_cterm;