src/Tools/Code/code_haskell.ML
changeset 32913 3e9809678574
parent 32903 793c993c63aa
child 32924 d2e9b2dab760
--- a/src/Tools/Code/code_haskell.ML	Mon Oct 12 14:22:54 2009 +0200
+++ b/src/Tools/Code/code_haskell.ML	Mon Oct 12 15:46:38 2009 +0200
@@ -144,12 +144,10 @@
             val tyvars = Code_Printer.intro_vars (map fst vs) init_syms;
             fun pr_eq ((ts, t), (thm, _)) =
               let
-                val consts = map_filter
-                  (fn c => if (is_some o syntax_const) c
-                    then NONE else (SOME o Long_Name.base_name o deresolve) c)
-                    (fold Code_Thingol.add_constnames (t :: ts) []);
+                val consts = fold Code_Thingol.add_constnames (t :: ts) [];
                 val vars = init_syms
-                  |> Code_Printer.intro_vars consts
+                  |> Code_Printer.intro_base_names
+                      (is_none o syntax_const) deresolve consts
                   |> Code_Printer.intro_vars ((fold o Code_Thingol.fold_varnames)
                        (insert (op =)) ts []);
               in