Skip to content

Commit

Permalink
Merge pull request #94 from kit-ty-kate/ocaml-5.2
Browse files Browse the repository at this point in the history
Add support for OCaml 5.2
  • Loading branch information
ejgallego authored Apr 3, 2024
2 parents bdcee74 + db072c9 commit 70c3120
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Unreleased
type%import loc = Location.t
```

* Support for OCaml 5.2 (#94, @kit-ty-kate)

1.10.0
------

Expand Down
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 70c3120

Please sign in to comment.