add ML_system_pp for type Isabelle_Thread.T;
authorwenzelm
Wed, 06 Sep 2023 16:03:22 +0200
changeset 78649 d46006355819
parent 78648 852ec09aef13
child 78650 47d0c333d155
add ML_system_pp for type Isabelle_Thread.T;
src/Pure/ML/ml_pp.ML
--- a/src/Pure/ML/ml_pp.ML	Wed Sep 06 14:09:27 2023 +0200
+++ b/src/Pure/ML/ml_pp.ML	Wed Sep 06 16:03:22 2023 +0200
@@ -8,6 +8,11 @@
 struct
 
 val _ =
+  ML_system_pp (fn _ => fn _ => fn t =>
+    PolyML.PrettyString ("<thread " ^ quote (Isabelle_Thread.print t) ^
+      (if Isabelle_Thread.is_active t then "" else " (inactive)") ^ ">"));
+
+val _ =
   ML_system_pp (fn _ => fn _ => Pretty.to_polyml o Proof_Display.pp_context);
 
 val _ =