improved eq_sg;
authorwenzelm
Tue, 08 Feb 1994 14:09:34 +0100
changeset 266 3fe01df1a614
parent 265 443dc2c37583
child 267 ab78019b8ec8
improved eq_sg; cosmetical change in print_sg;
src/Pure/sign.ML
--- a/src/Pure/sign.ML	Tue Feb 08 14:08:38 1994 +0100
+++ b/src/Pure/sign.ML	Tue Feb 08 14:09:34 1994 +0100
@@ -72,7 +72,7 @@
 
 fun subsig (Sg {stamps = s1, ...}, Sg {stamps = s2, ...}) = s1 subset s2;
 
-fun eq_sg (sg1, sg2) = subsig (sg1, sg2) andalso subsig (sg2, sg1);
+fun eq_sg (Sg {stamps = s1, ...}, Sg {stamps = s2, ...}) = eq_set (s1, s2);
 
 
 
@@ -107,7 +107,7 @@
     fun pretty_coreg (ty, ars) = map (pretty_arity ty) ars;
 
     fun pretty_const syn (c, ty) = Pretty.block
-      [Pretty.str (c ^ " ::"), Pretty.brk 1, prt_typ syn ty];
+      [Pretty.str (quote c ^ " ::"), Pretty.brk 1, prt_typ syn ty];
 
 
     val Sg {tsig, const_tab, syn, stamps} = sg;