handle Option instead of OPTION;
authorwenzelm
Thu, 07 Apr 2005 09:24:35 +0200
changeset 15660 255055554c67
parent 15659 043c460af14d
child 15661 9ef583b08647
handle Option instead of OPTION;
src/HOL/Tools/inductive_codegen.ML
src/Provers/Arith/fast_lin_arith.ML
--- a/src/HOL/Tools/inductive_codegen.ML	Wed Apr 06 18:13:30 2005 +0200
+++ b/src/HOL/Tools/inductive_codegen.ML	Thu Apr 07 09:24:35 2005 +0200
@@ -229,7 +229,7 @@
             term_vs t subset vs andalso
             forall is_eqT dupTs
           end)
-            (modes_of modes t handle OPTION => [Mode (([], []), [])])
+            (modes_of modes t handle Option => [Mode (([], []), [])])
       | Sidecond t => if term_vs t subset vs then SOME (Mode (([], []), []))
           else NONE) ps);
 
@@ -590,7 +590,7 @@
   end;
 
 fun find_mode s u modes is = (case find_first (fn Mode ((_, js), _) => is=js)
-  (modes_of modes u handle OPTION => []) of
+  (modes_of modes u handle Option => []) of
      NONE => error ("No such mode for " ^ s ^ ": " ^ string_of_mode ([], is))
    | mode => mode);
 
--- a/src/Provers/Arith/fast_lin_arith.ML	Wed Apr 06 18:13:30 2005 +0200
+++ b/src/Provers/Arith/fast_lin_arith.ML	Thu Apr 07 09:24:35 2005 +0200
@@ -439,7 +439,7 @@
         case add2 thm1 thm2 of
           NONE => (case try_add ([thm1] RL inj_thms) thm2 of
                      NONE => ( valOf(try_add ([thm2] RL inj_thms) thm1)
-                               handle OPTION =>
+                               handle Option =>
                                (trace_thm "" thm1; trace_thm "" thm2;
                                 sys_error "Lin.arith. failed to add thms")
                              )