equal
deleted
inserted
replaced
261 if nesting_pref = Unfold_Nesting orelse exists (is_none o fp_sugar_of_global thy) T_names then |
261 if nesting_pref = Unfold_Nesting orelse exists (is_none o fp_sugar_of_global thy) T_names then |
262 f config T_names thy |
262 f config T_names thy |
263 else |
263 else |
264 thy; |
264 thy; |
265 |
265 |
266 fun new_interpretation_of nesting_pref f fp_sugars thy = |
266 fun new_interpretation_of nesting_pref f (fp_sugars : fp_sugar list) thy = |
267 let val T_names = map (fst o dest_Type o #T) fp_sugars in |
267 let val T_names = map (fst o dest_Type o #T) fp_sugars in |
268 if nesting_pref = Keep_Nesting orelse |
268 if nesting_pref = Keep_Nesting orelse |
269 exists (is_none o Old_Datatype_Data.get_info thy) T_names then |
269 exists (is_none o Old_Datatype_Data.get_info thy) T_names then |
270 f Old_Datatype_Aux.default_config T_names thy |
270 f Old_Datatype_Aux.default_config T_names thy |
271 else |
271 else |