src/Pure/Isar/constdefs.ML
changeset 15570 8d8c70b41bab
parent 15531 08c8dad8e399
child 15703 727ef1b8b3ee
--- a/src/Pure/Isar/constdefs.ML	Thu Mar 03 09:22:35 2005 +0100
+++ b/src/Pure/Isar/constdefs.ML	Thu Mar 03 12:43:01 2005 +0100
@@ -40,12 +40,12 @@
 
     val ctxt =
       ProofContext.init thy |> ProofContext.add_fixes
-        (flat (map (fn (As, T) => map (fn A => (A, T, NONE)) As) structs));
+        (List.concat (map (fn (As, T) => map (fn A => (A, T, NONE)) As) structs));
     val (ctxt', d, mx) =
       (case decl of NONE => (ctxt, NONE, Syntax.NoSyn) | SOME (x, raw_T, mx) =>
         let
           val x' = Syntax.const_name x mx and mx' = Syntax.fix_mixfix x mx;
-          val T = apsome (prep_typ ctxt) raw_T;
+          val T = Option.map (prep_typ ctxt) raw_T;
         in (ProofContext.add_fixes_liberal [(x', T, SOME mx')] ctxt, SOME x', mx') end);
 
     val prop = prep_term ctxt' raw_prop;