src/Pure/old_goals.ML
changeset 26928 ca87aff1ad2d
parent 26665 2e363edf7578
child 26939 1035c89b4c02
equal deleted inserted replaced
26927:8684b5240f11 26928:ca87aff1ad2d
   199 (*Prints exceptions readably to users*)
   199 (*Prints exceptions readably to users*)
   200 fun print_sign_exn_unit thy e =
   200 fun print_sign_exn_unit thy e =
   201   case e of
   201   case e of
   202      THM (msg,i,thms) =>
   202      THM (msg,i,thms) =>
   203          (writeln ("Exception THM " ^ string_of_int i ^ " raised:\n" ^ msg);
   203          (writeln ("Exception THM " ^ string_of_int i ^ " raised:\n" ^ msg);
   204           List.app print_thm thms)
   204           List.app Display.print_thm thms)
   205    | THEORY (msg,thys) =>
   205    | THEORY (msg,thys) =>
   206          (writeln ("Exception THEORY raised:\n" ^ msg);
   206          (writeln ("Exception THEORY raised:\n" ^ msg);
   207           List.app (writeln o Context.str_of_thy) thys)
   207           List.app (writeln o Context.str_of_thy) thys)
   208    | TERM (msg,ts) =>
   208    | TERM (msg,ts) =>
   209          (writeln ("Exception TERM raised:\n" ^ msg);
   209          (writeln ("Exception TERM raised:\n" ^ msg);