src/Tools/Code/code_haskell.ML
changeset 55145 2bb3cd36bcf7
parent 52801 6f88e379aa3e
child 55147 bce3dbc11f95
--- a/src/Tools/Code/code_haskell.ML	Sat Jan 25 22:18:20 2014 +0100
+++ b/src/Tools/Code/code_haskell.ML	Sat Jan 25 23:50:49 2014 +0100
@@ -136,10 +136,9 @@
               );
             fun print_eqn ((ts, t), (some_thm, _)) =
               let
-                val consts = fold Code_Thingol.add_constnames (t :: ts) [];
                 val vars = reserved
-                  |> intro_base_names
-                      (is_none o const_syntax) deresolve consts
+                  |> intro_base_names_for (is_none o const_syntax)
+                      deresolve (t :: ts)
                   |> intro_vars ((fold o Code_Thingol.fold_varnames)
                       (insert (op =)) ts []);
               in