equal
deleted
inserted
replaced
178 |
178 |
179 fun export_information thy name content = |
179 fun export_information thy name content = |
180 (Export.export thy name [content]; writeln (Export.message thy "")); |
180 (Export.export thy name [content]; writeln (Export.message thy "")); |
181 |
181 |
182 fun export_to_exports thy width (Singleton (extension, p)) = |
182 fun export_to_exports thy width (Singleton (extension, p)) = |
183 export_information thy (generatedN ^ "." ^ extension) (Code_Printer.format [] width p) |
183 export_information thy (Path.basic (generatedN ^ "." ^ extension)) |
|
184 (Code_Printer.format [] width p) |
184 | export_to_exports thy width (Hierarchy code_modules) = ( |
185 | export_to_exports thy width (Hierarchy code_modules) = ( |
185 map (fn (names, p) => export_information thy (Path.implode (Path.make names)) |
186 map (fn (names, p) => export_information thy (Path.make names) |
186 (Code_Printer.format [] width p)) code_modules; |
187 (Code_Printer.format [] width p)) code_modules; |
187 ()); |
188 ()); |
188 |
189 |
189 fun export_result ctxt some_file width (pretty_code, _) = |
190 fun export_result ctxt some_file width (pretty_code, _) = |
190 (case some_file of |
191 (case some_file of |