src/Pure/Isar/toplevel.ML
changeset 21986 76d3d258cfa3
parent 21982 fe30893e50f2
child 22014 4b70cbd96007
equal deleted inserted replaced
21985:acfb13e8819e 21986:76d3d258cfa3
   317 fun exn_message exn = exn_msg (! debug) exn;
   317 fun exn_message exn = exn_msg (! debug) exn;
   318 
   318 
   319 fun print_exn_str NONE = NONE
   319 fun print_exn_str NONE = NONE
   320   | print_exn_str (SOME (exn, s)) = SOME (cat_lines [exn_message exn, s]);
   320   | print_exn_str (SOME (exn, s)) = SOME (cat_lines [exn_message exn, s]);
   321 
   321 
   322 val print_exn_default = Option.app Output.error_msg o print_exn_str
   322 val print_exn_default = K () o Option.map Output.error_msg o print_exn_str
   323 
   323 
   324 val print_exn_fn = ref print_exn_default;
   324 val print_exn_fn = ref print_exn_default;
   325 
   325 
   326 end;
   326 end;
   327 
   327