src/HOL/Tools/datatype_codegen.ML
changeset 17412 e26cb20ef0cc
parent 17261 193b84a70ca4
child 17521 0f1c48de39f5
equal deleted inserted replaced
17411:664434175578 17412:e26cb20ef0cc
   279              | _ => NONE)
   279              | _ => NONE)
   280            end)
   280            end)
   281  |  _ => NONE);
   281  |  _ => NONE);
   282 
   282 
   283 fun datatype_tycodegen thy defs gr dep module brack (Type (s, Ts)) =
   283 fun datatype_tycodegen thy defs gr dep module brack (Type (s, Ts)) =
   284       (case Symtab.curried_lookup (DatatypePackage.get_datatypes thy) s of
   284       (case Symtab.lookup (DatatypePackage.get_datatypes thy) s of
   285          NONE => NONE
   285          NONE => NONE
   286        | SOME {descr, ...} =>
   286        | SOME {descr, ...} =>
   287            if isSome (get_assoc_type thy s) then NONE else
   287            if isSome (get_assoc_type thy s) then NONE else
   288            let
   288            let
   289              val (gr', ps) = foldl_map
   289              val (gr', ps) = foldl_map