giving up calling 'datatype_compat' in a locale -- causes trouble with extensions
authorblanchet
Wed, 03 Sep 2014 00:06:22 +0200
changeset 58150 2bf3ed0f62cf
parent 58149 72fc2bf52986
child 58151 414deb2ef328
giving up calling 'datatype_compat' in a locale -- causes trouble with extensions
src/HOL/BNF_Examples/Compat.thy
--- a/src/HOL/BNF_Examples/Compat.thy	Wed Sep 03 00:06:22 2014 +0200
+++ b/src/HOL/BNF_Examples/Compat.thy	Wed Sep 03 00:06:22 2014 +0200
@@ -165,18 +165,6 @@
 | "f_foo (FooCons bar foo) = Suc (f_foo foo) + f_bar bar"
 | "f_bar Bar = Suc 0"
 
-locale opt begin
-
-datatype_new 'a opt = Non | Som 'a
-
-ML \<open> get_descrs @{theory} (0, 1, 1) @{type_name opt}; \<close>
-
-datatype_compat opt
-
-ML \<open> get_descrs @{theory} (1, 1, 1) @{type_name opt}; \<close>
-
-end
-
 datatype funky = Funky "funky tre" | Funky'
 
 ML \<open> get_descrs @{theory} (3, 3, 3) @{type_name funky}; \<close>