proper option, not catch-all pattern;
authorwenzelm
Mon, 31 Aug 2015 22:30:41 +0200
changeset 61072 f9be82413170
parent 61071 c6ac3c3fbb85
child 61073 eea21f2ddf16
proper option, not catch-all pattern;
src/HOL/Tools/BNF/bnf_lift.ML
--- a/src/HOL/Tools/BNF/bnf_lift.ML	Mon Aug 31 22:28:23 2015 +0200
+++ b/src/HOL/Tools/BNF/bnf_lift.ML	Mon Aug 31 22:30:41 2015 +0200
@@ -49,7 +49,7 @@
   let
     val plugins = get_first (fn Plugins_Option f => SOME (f lthy) | _ => NONE) (rev opts)
       |> the_default Plugin_Name.default_filter;
-    val no_warn_wits = exists (can (fn Sequential_Option => ())) opts;
+    val no_warn_wits = exists (fn No_Warn_Wits => true | _ => false) opts;
 
     (* extract Rep Abs F RepT AbsT *)
     val (_, [Rep_G, Abs_G, F]) = Thm.prop_of thm