src/Tools/Code/code_haskell.ML
changeset 40706 fed0251b7939
parent 40705 03f1266a066e
child 40743 b07a0dbc8a38
equal deleted inserted replaced
40699:af30b8875733 40706:fed0251b7939
   360           end
   360           end
   361       | write_module width NONE (_, content) = writeln (format [] width content);
   361       | write_module width NONE (_, content) = writeln (format [] width content);
   362   in
   362   in
   363     Code_Target.serialization
   363     Code_Target.serialization
   364       (fn width => fn destination => K () o map (write_module width destination))
   364       (fn width => fn destination => K () o map (write_module width destination))
   365       (fn present => fn width => rpair (fn _ => error "no deresolving")
   365       (fn present => fn width => rpair (try (deresolver ""))
   366         o format present width o Pretty.chunks o map snd)
   366         o format present width o Pretty.chunks o map snd)
   367       (map (uncurry print_module_frame o apsnd single) includes
   367       (map (uncurry print_module_frame o apsnd single) includes
   368         @ map (fn module_name => print_module module_name (Graph.get_node haskell_program module_name))
   368         @ map (fn module_name => print_module module_name (Graph.get_node haskell_program module_name))
   369           ((flat o rev o Graph.strong_conn) haskell_program))
   369           ((flat o rev o Graph.strong_conn) haskell_program))
   370   end;
   370   end;