equal
deleted
inserted
replaced
393 ("{-# OPTIONS_GHC -fglasgow-exts #-}\n\n" |
393 ("{-# OPTIONS_GHC -fglasgow-exts #-}\n\n" |
394 ^ code_of_pretty content) |
394 ^ code_of_pretty content) |
395 end |
395 end |
396 in |
396 in |
397 Code_Target.mk_serialization target |
397 Code_Target.mk_serialization target |
398 (fn NONE => K () o map (code_writeln o snd) | SOME file => K () o map |
398 (fn NONE => K () o map (code_writeln o (fn p => Pretty.block [p, Pretty.fbrk]) o snd) |
399 (write_module (check_destination file))) |
399 | SOME file => K () o map (write_module (check_destination file))) |
400 (rpair [] o cat_lines o map (code_of_pretty o snd)) |
400 (rpair [] o cat_lines o map (code_of_pretty o snd)) |
401 (map (uncurry print_module) includes |
401 (map (uncurry print_module) includes |
402 @ map serialize_module (Symtab.dest hs_program)) |
402 @ map serialize_module (Symtab.dest hs_program)) |
403 destination |
403 destination |
404 end; |
404 end; |