src/Tools/Code/code_haskell.ML
changeset 48568 084cd758a8ab
parent 48431 6efff142bb54
child 51143 0a2371e7ced3
equal deleted inserted replaced
48566:6e5702395491 48568:084cd758a8ab
   393       | write_module width NONE (_, content) = writeln (format [] width content);
   393       | write_module width NONE (_, content) = writeln (format [] width content);
   394   in
   394   in
   395     Code_Target.serialization
   395     Code_Target.serialization
   396       (fn width => fn destination => K () o map (write_module width destination))
   396       (fn width => fn destination => K () o map (write_module width destination))
   397       (fn present => fn width => rpair (try (deresolver ""))
   397       (fn present => fn width => rpair (try (deresolver ""))
   398         o format present width o Pretty.chunks o map snd)
   398         o (map o apsnd) (format present width))
   399       (map (uncurry print_module_frame o apsnd single) includes
   399       (map (uncurry print_module_frame o apsnd single) includes
   400         @ map (fn module_name => print_module module_name (Graph.get_node haskell_program module_name))
   400         @ map (fn module_name => print_module module_name (Graph.get_node haskell_program module_name))
   401           ((flat o rev o Graph.strong_conn) haskell_program))
   401           ((flat o rev o Graph.strong_conn) haskell_program))
   402   end;
   402   end;
   403 
   403