src/Tools/code/code_thingol.ML
changeset 25042 a33b78d63114
parent 24969 b38527eefb3b
child 25485 33840a854e63
equal deleted inserted replaced
25041:c1efae25ee76 25042:a33b78d63114
   425   in
   425   in
   426     fold_map mk_dict typargs
   426     fold_map mk_dict typargs
   427   end
   427   end
   428 and exprgen_dict_parms thy (algbr as (_, consts)) funcgr (c, ty_ctxt) =
   428 and exprgen_dict_parms thy (algbr as (_, consts)) funcgr (c, ty_ctxt) =
   429   let
   429   let
   430     val ty_decl = Consts.the_declaration consts c;
   430     val ty_decl = Consts.the_type consts c;
   431     val (tys, tys_decl) = pairself (curry (Consts.typargs consts) c) (ty_ctxt, ty_decl);
   431     val (tys, tys_decl) = pairself (curry (Consts.typargs consts) c) (ty_ctxt, ty_decl);
   432     val sorts = map (snd o dest_TVar) tys_decl;
   432     val sorts = map (snd o dest_TVar) tys_decl;
   433   in
   433   in
   434     fold_map (exprgen_dicts thy algbr funcgr) (tys ~~ sorts)
   434     fold_map (exprgen_dicts thy algbr funcgr) (tys ~~ sorts)
   435   end
   435   end