do not print unimplemented functions
authorhaftmann
Tue, 20 Jun 2017 08:01:56 +0200
changeset 66133 0b635a6774fb
parent 66132 5844a096c462
child 66134 a1fb6beb2731
do not print unimplemented functions
src/Pure/Isar/code.ML
--- a/src/Pure/Isar/code.ML	Tue Jun 20 08:01:56 2017 +0200
+++ b/src/Pure/Isar/code.ML	Tue Jun 20 08:01:56 2017 +0200
@@ -1020,9 +1020,7 @@
     fun pretty_equations const thms =
       (Pretty.block o Pretty.fbreaks)
         (Pretty.str (string_of_const thy const) :: map (Thm.pretty_thm_item ctxt) thms);
-    fun pretty_function (const, Unimplemented) =
-          pretty_equations const []
-      | pretty_function (const, Eqns_Default (_, eqns_lazy)) =
+    fun pretty_function (const, Eqns_Default (_, eqns_lazy)) =
           pretty_equations const (map fst (Lazy.force eqns_lazy))
       | pretty_function (const, Eqns eqns) =
           pretty_equations const (map fst eqns)
@@ -1053,6 +1051,7 @@
     val functions = functions_of spec
       |> Symtab.dest
       |> (map o apsnd) (snd o fst)
+      |> filter (fn (_, Unimplemented) => false | _ => true)
       |> sort (string_ord o apply2 fst);
     val datatypes = types_of spec
       |> Symtab.dest