Skip to content

Commit

Permalink
Add support for OCaml 5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kit-ty-kate committed Mar 29, 2024
1 parent bdcee74 commit bc4f744
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/compat/gen.ml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let make_version ~version f_prefix =
let include_table =
[ ("types_module_type", [(4, 10); (4, 8)])
; ("types_signature_item", [(4, 8)])
; ("types_type_kind", [(4, 13)])
; ("types_type_kind", [(5, 2); (4, 13)])
; ("init_path", [(4, 9)])
; ("env_lookup", [(4, 10)])
; ("types_desc", [(4, 14)]) ]
Expand Down
12 changes: 12 additions & 0 deletions src/compat/types_type_kind_ge_502.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
type ('lbl, 'cstr) type_kind_412 =
| Type_abstract
| Type_record of 'lbl list * Types.record_representation
| Type_variant of 'cstr list
| Type_open

let migrate_type_kind :
('lbl, 'cstr) Types.type_kind -> ('lbl, 'cstr) type_kind_412 = function
| Type_abstract _ -> Type_abstract
| Type_record (lbl, repr) -> Type_record (lbl, repr)
| Type_variant (cstr, _) -> Type_variant cstr
| Type_open -> Type_open

0 comments on commit bc4f744

Please sign in to comment.