equal
deleted
inserted
replaced
42 |
42 |
43 structure Presentation = Theory_Data |
43 structure Presentation = Theory_Data |
44 ( |
44 ( |
45 type T = ((presentation_context -> theory -> unit) * stamp) list; |
45 type T = ((presentation_context -> theory -> unit) * stamp) list; |
46 val empty = []; |
46 val empty = []; |
47 val extend = I; |
|
48 fun merge data : T = Library.merge (eq_snd op =) data; |
47 fun merge data : T = Library.merge (eq_snd op =) data; |
49 ); |
48 ); |
50 |
49 |
51 fun apply_presentation (context: presentation_context) thy = |
50 fun apply_presentation (context: presentation_context) thy = |
52 ignore (Par_List.map (fn (f, _) => f context thy) (Presentation.get thy)); |
51 ignore (Par_List.map (fn (f, _) => f context thy) (Presentation.get thy)); |