src/Pure/Tools/codegen_package.ML
changeset 20183 fd546b0c8a7c
parent 20175 0a8ca32f6e64
child 20191 b43fd26e1aaa
equal deleted inserted replaced
20182:79c9ff40d760 20183:fd546b0c8a7c
   242 val serializers = ref (
   242 val serializers = ref (
   243   Symtab.empty
   243   Symtab.empty
   244   |> Symtab.update (
   244   |> Symtab.update (
   245        #ml CodegenSerializer.serializers
   245        #ml CodegenSerializer.serializers
   246        |> apsnd (fn seri => seri
   246        |> apsnd (fn seri => seri
   247             (nsp_dtcon, nsp_class)
   247             nsp_dtcon
   248             [[nsp_module], [nsp_class, nsp_tyco], [nsp_const, nsp_overl, nsp_dtcon, nsp_class, nsp_mem, nsp_inst, nsp_instmem]]
   248             [[nsp_module], [nsp_class, nsp_tyco], [nsp_const, nsp_overl, nsp_dtcon, nsp_class, nsp_mem, nsp_inst, nsp_instmem]]
   249           )
   249           )
   250      )
   250      )
   251   |> Symtab.update (
   251   |> Symtab.update (
   252        #haskell CodegenSerializer.serializers
   252        #haskell CodegenSerializer.serializers
  1039 fun get_ml_fun_datatype thy resolv =
  1039 fun get_ml_fun_datatype thy resolv =
  1040   let
  1040   let
  1041     val target_data =
  1041     val target_data =
  1042       ((fn data => (the o Symtab.lookup data) "ml") o #target_data o CodegenData.get) thy;
  1042       ((fn data => (the o Symtab.lookup data) "ml") o #target_data o CodegenData.get) thy;
  1043   in
  1043   in
  1044     CodegenSerializer.ml_fun_datatype (nsp_dtcon, nsp_class)
  1044     CodegenSerializer.ml_fun_datatype nsp_dtcon
  1045       ((Option.map fst oo Symtab.lookup o #syntax_tyco) target_data,
  1045       ((Option.map fst oo Symtab.lookup o #syntax_tyco) target_data,
  1046       (Option.map fst oo Symtab.lookup o #syntax_const) target_data)
  1046       (Option.map fst oo Symtab.lookup o #syntax_const) target_data)
  1047       resolv
  1047       resolv
  1048   end;
  1048   end;
  1049 
  1049