only depend on exisiting statements
authorhaftmann
Tue, 21 Dec 2010 10:20:33 +0100
changeset 41351 e82fc600a3a5
parent 41350 ce825d32b450
child 41352 87adb55fb0fb
child 41355 8d9b73ef5eae
child 41364 aaf5968c67ef
only depend on exisiting statements
src/Tools/Code/code_target.ML
--- a/src/Tools/Code/code_target.ML	Tue Dec 21 09:29:53 2010 +0100
+++ b/src/Tools/Code/code_target.ML	Tue Dec 21 10:20:33 2010 +0100
@@ -421,7 +421,7 @@
     val program = prepared_program
       |> Graph.new_node (value_name,
           Code_Thingol.Fun (Term.dummy_patternN, (((vs', ty'), [(([IVar NONE], t), (NONE, true))]), NONE)))
-      |> fold (curry Graph.add_edge value_name) deps;
+      |> fold (curry (perhaps o try o Graph.add_edge) value_name) deps;
     val (program_code, deresolve) = produce (mounted_serializer program);
     val value_name' = the (deresolve value_name);
   in (program_code, value_name') end;