src/Pure/Syntax/mixfix.ML
changeset 19482 9f11af8f7ef9
parent 19467 d75570e8aa97
child 19673 853f5a3cc06e
--- a/src/Pure/Syntax/mixfix.ML	Thu Apr 27 12:11:56 2006 +0200
+++ b/src/Pure/Syntax/mixfix.ML	Thu Apr 27 15:06:35 2006 +0200
@@ -183,7 +183,7 @@
         | _ => error ("Bad mixfix declaration for type: " ^ quote t))
       end;
 
-    val mfix = List.mapPartial mfix_of type_decls;
+    val mfix = map_filter mfix_of type_decls;
     val xconsts = map name_of type_decls;
   in SynExt.syn_ext mfix xconsts ([], [], [], []) [] ([], []) end;
 
@@ -224,9 +224,9 @@
     fun binder (c, _, Binder (sy, _, _)) = SOME (sy, c)
       | binder _ = NONE;
 
-    val mfix = List.concat (map mfix_of const_decls);
+    val mfix = maps mfix_of const_decls;
     val xconsts = map name_of const_decls;
-    val binders = List.mapPartial binder const_decls;
+    val binders = map_filter binder const_decls;
     val binder_trs = binders |> map (SynExt.stamp_trfun binder_stamp o
         apsnd K o SynTrans.mk_binder_tr);
     val binder_trs' = binders |> map (SynExt.stamp_trfun binder_stamp o