Skip to content

Commit 067ecf7

Browse files
committed
Merge pull request #94 from kit-ty-kate/ocaml-5.2
Add support for OCaml 5.2
1 parent 5804798 commit 067ecf7

File tree

4 files changed

+24
-3
lines changed

4 files changed

+24
-3
lines changed

.github/workflows/build-and-test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Build and Test
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ master, v1.x ]
66
pull_request:
7-
branches: [ master ]
7+
branches: [ master, v1.x ]
88

99
jobs:
1010
build:
@@ -26,6 +26,9 @@ jobs:
2626
- 4.12.x
2727
- 4.13.x
2828
- 4.14.x
29+
- 5.0.x
30+
- 5.1.x
31+
- 5.2.x
2932

3033
runs-on: ${{ matrix.os }}
3134

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
1.11.0
2+
------
3+
4+
* Support for OCaml 5.2 (#94, @kit-ty-kate, backport to 1.x by
5+
@ejgallego #97)
6+
17
1.10.0
28
------
39

src/compat/gen.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ let make_version ~version f_prefix =
1414
let include_table =
1515
[ ("types_module_type", [(4, 10); (4, 8)])
1616
; ("types_signature_item", [(4, 8)])
17-
; ("types_type_kind", [(4, 13)])
17+
; ("types_type_kind", [(5, 2); (4, 13)])
1818
; ("init_path", [(4, 9)])
1919
; ("env_lookup", [(4, 10)])
2020
; ("types_desc", [(4, 14)]) ]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
type ('lbl, 'cstr) type_kind_412 =
2+
| Type_abstract
3+
| Type_record of 'lbl list * Types.record_representation
4+
| Type_variant of 'cstr list
5+
| Type_open
6+
7+
let migrate_type_kind :
8+
('lbl, 'cstr) Types.type_kind -> ('lbl, 'cstr) type_kind_412 = function
9+
| Type_abstract _ -> Type_abstract
10+
| Type_record (lbl, repr) -> Type_record (lbl, repr)
11+
| Type_variant (cstr, _) -> Type_variant cstr
12+
| Type_open -> Type_open

0 commit comments

Comments
 (0)