# HG changeset patch # User haftmann # Date 1285680870 -7200 # Node ID 5d5fd2baf99dadbf311f23bd87291643086ee155 # Parent 5bcf4253d57943fc8053ef6abef412b4205f0561# Parent 553f9b9aed28caa827bc142fd523b01b8bcf1f9a merged diff -r 5bcf4253d579 -r 5d5fd2baf99d NEWS --- a/NEWS Tue Sep 28 15:31:10 2010 +0200 +++ b/NEWS Tue Sep 28 15:34:30 2010 +0200 @@ -74,10 +74,12 @@ *** HOL *** +* Dropped old primrec package. INCOMPATIBILITY. + * Improved infrastructure for term evaluation using code generator techniques, in particular static evaluation conversions. -* String.literal is a type, but not a datatype. INCOMPATIBILITY. +* String.literal is a type, but not a datatype. INCOMPATIBILITY. * Renamed lemmas: expand_fun_eq -> fun_eq_iff diff -r 5bcf4253d579 -r 5d5fd2baf99d src/HOL/Tools/primrec.ML --- a/src/HOL/Tools/primrec.ML Tue Sep 28 15:31:10 2010 +0200 +++ b/src/HOL/Tools/primrec.ML Tue Sep 28 15:34:30 2010 +0200 @@ -320,12 +320,7 @@ val _ = Outer_Syntax.command "primrec" "define primitive recursive functions on datatypes" Keyword.thy_decl - ((primrec_decl >> (fn ((opt_target, fixes), specs) => - Toplevel.local_theory opt_target (add_primrec_cmd fixes specs #> snd))) - || (old_primrec_decl >> (fn ((unchecked, alt_name), eqns) => - Toplevel.theory (snd o - (if unchecked then OldPrimrec.add_primrec_unchecked else OldPrimrec.add_primrec) - alt_name (map Parse.triple_swap eqns) o - tap (fn _ => legacy_feature "Old variant of 'primrec' command -- use new syntax instead"))))); + (primrec_decl >> (fn ((opt_target, fixes), specs) => + Toplevel.local_theory opt_target (add_primrec_cmd fixes specs #> snd))); end;