src/Tools/Code/code_haskell.ML
changeset 38703 0e2596019119
parent 37958 9728342bcd56
child 38770 1c70a502c590
equal deleted inserted replaced
38702:72fd257f4343 38703:0e2596019119
   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;