equal
deleted
inserted
replaced
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 |