src/Tools/Code/code_thingol.ML
changeset 61268 abe08fb15a12
parent 61262 7bd1eb4b056e
child 62538 85ebb645b1a3
equal deleted inserted replaced
61267:0b6217fda81b 61268:abe08fb15a12
   394   if permissive
   394   if permissive
   395   then raise PERMISSIVE ()
   395   then raise PERMISSIVE ()
   396   else
   396   else
   397     let
   397     let
   398       val thm_msg =
   398       val thm_msg =
   399         Option.map (fn thm => "in code equation " ^ Display.string_of_thm ctxt thm) some_thm;
   399         Option.map (fn thm => "in code equation " ^ Thm.string_of_thm ctxt thm) some_thm;
   400       val dep_msg = if null (tl deps) then NONE
   400       val dep_msg = if null (tl deps) then NONE
   401         else SOME ("with dependency "
   401         else SOME ("with dependency "
   402           ^ space_implode " -> " (map (Code_Symbol.quote ctxt) (rev deps)));
   402           ^ space_implode " -> " (map (Code_Symbol.quote ctxt) (rev deps)));
   403       val thm_dep_msg = case (thm_msg, dep_msg)
   403       val thm_dep_msg = case (thm_msg, dep_msg)
   404        of (SOME thm_msg, SOME dep_msg) => "\n(" ^ thm_msg ^ ",\n" ^ dep_msg ^ ")"
   404        of (SOME thm_msg, SOME dep_msg) => "\n(" ^ thm_msg ^ ",\n" ^ dep_msg ^ ")"