toplevel pretty printer for Synchronized.var;
authorwenzelm
Thu, 19 Nov 2009 17:26:28 +0100
changeset 33767 f962c761a38f
parent 33766 c679f05600cd
child 33768 bba9eac8aa25
toplevel pretty printer for Synchronized.var;
src/Pure/ML-Systems/install_pp_polyml-5.3.ML
--- a/src/Pure/ML-Systems/install_pp_polyml-5.3.ML	Thu Nov 19 14:46:33 2009 +0100
+++ b/src/Pure/ML-Systems/install_pp_polyml-5.3.ML	Thu Nov 19 17:26:28 2009 +0100
@@ -3,6 +3,9 @@
 Extra toplevel pretty-printing for Poly/ML 5.3.0.
 *)
 
+PolyML.addPrettyPrinter (fn depth => fn pretty => fn var =>
+  pretty (Synchronized.value var, depth));
+
 PolyML.addPrettyPrinter (fn depth => fn pretty => fn x =>
   (case Future.peek x of
     NONE => PolyML.PrettyString "<future>"