Skip to content

Commit c08869c

Browse files
authored
Merge pull request #340 from patricoferris/5.2-ast-bump
Prepare for 5.2 AST bump
2 parents 6379537 + ab51aec commit c08869c

File tree

7 files changed

+19
-21
lines changed

7 files changed

+19
-21
lines changed

.github/workflows/workflow.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ jobs:
2121
- 4
2222
include:
2323
- os: ubuntu-latest
24-
ocaml-compiler: "4.04"
25-
- os: ubuntu-latest
26-
ocaml-compiler: "4.04"
24+
ocaml-compiler: "4.08"
2725

2826
runs-on: ${{ matrix.os }}
2927

dune-project

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ The TyXML JSX allow to write TyXML documents with reason's JSX syntax.
2222
It works with textual trees, virtual DOM trees, or any TyXML module.
2323
")
2424
(depends
25-
(ocaml (>= 4.04))
25+
(ocaml (>= 4.08))
2626
(tyxml (= :version))
2727
(tyxml-syntax (= :version))
28-
(ppxlib (>= 0.18))
28+
(ppxlib (>= 0.36))
2929
(alcotest :with-test)
3030
(reason :with-test)))
3131

@@ -42,20 +42,20 @@ The TyXML PPX allow to write TyXML documents using the traditional HTML syntax.
4242
It works with textual trees, virtual DOM trees, or any TyXML module.
4343
")
4444
(depends
45-
(ocaml (>= 4.04))
45+
(ocaml (>= 4.08))
4646
(tyxml (= :version))
4747
(tyxml-syntax (= :version))
4848
(markup (>= 0.7.2))
49-
(ppxlib (>= 0.18))
49+
(ppxlib (>= 0.36))
5050
(re (>= 1.5.0))
5151
(alcotest :with-test)))
5252

5353
(package
5454
(name tyxml-syntax)
5555
(synopsis "Common layer for the JSX and PPX syntaxes for Tyxml")
5656
(depends
57-
(ocaml (>= 4.03))
58-
(ppxlib (>= 0.18))
57+
(ocaml (>= 4.08))
58+
(ppxlib (>= 0.36))
5959
(re (>= 1.5.0))
6060
(uutf (>= 1.0.0))
6161
(alcotest :with-test)))
@@ -65,7 +65,7 @@ It works with textual trees, virtual DOM trees, or any TyXML module.
6565
(synopsis "A library for building correct HTML and SVG documents")
6666
(description "TyXML provides a set of convenient combinators that uses the OCaml type system to ensure the validity of the generated documents. TyXML can be used with any representation of HTML and SVG: the textual one, provided directly by this package, or DOM trees (`js_of_ocaml-tyxml`) virtual DOM (`virtual-dom`) and reactive or replicated trees (`eliom`). You can also create your own representation and use it to instantiate a new set of combinators.")
6767
(depends
68-
(ocaml (>= 4.03))
68+
(ocaml (>= 4.08))
6969
(re (>= 1.5.0))
7070
(uutf (>= 1.0.0))
7171
seq

ppx/tyxml_ppx.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -378,12 +378,12 @@ let markup_cases ~lang ~modname cases =
378378
let rec markup_function ~lang ~modname e =
379379
let loc = e.pexp_loc in
380380
match e.pexp_desc with
381-
| Pexp_fun (label,def,pat,content) ->
381+
| Pexp_function (params, constraint_, (Pfunction_body content)) ->
382382
let content = markup_function ~lang ~modname content in
383-
{e with pexp_desc = Pexp_fun (label,def,pat,content)}
384-
| Pexp_function cases ->
383+
{e with pexp_desc = Pexp_function (params, constraint_, (Pfunction_body content))}
384+
| Pexp_function (params, constraint_, (Pfunction_cases (cases, loc, attr))) ->
385385
let cases = markup_cases ~lang ~modname cases in
386-
{e with pexp_desc = Pexp_function cases}
386+
{e with pexp_desc = Pexp_function (params, constraint_, (Pfunction_cases (cases, loc, attr)))}
387387
| _ ->
388388
markup_to_expr_with_implementation lang modname loc @@
389389
application_to_list e

tyxml-jsx.opam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ doc: "https://ocsigen.org/tyxml/latest/manual/intro"
1818
bug-reports: "https://github.com/ocsigen/tyxml/issues"
1919
depends: [
2020
"dune" {>= "2.7"}
21-
"ocaml" {>= "4.04"}
21+
"ocaml" {>= "4.08"}
2222
"tyxml" {= version}
2323
"tyxml-syntax" {= version}
24-
"ppxlib" {>= "0.18"}
24+
"ppxlib" {>= "0.36"}
2525
"alcotest" {with-test}
2626
"reason" {with-test}
2727
"odoc" {with-doc}

tyxml-ppx.opam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ doc: "https://ocsigen.org/tyxml/latest/manual/intro"
1818
bug-reports: "https://github.com/ocsigen/tyxml/issues"
1919
depends: [
2020
"dune" {>= "2.7"}
21-
"ocaml" {>= "4.04"}
21+
"ocaml" {>= "4.08"}
2222
"tyxml" {= version}
2323
"tyxml-syntax" {= version}
2424
"markup" {>= "0.7.2"}
25-
"ppxlib" {>= "0.18"}
25+
"ppxlib" {>= "0.36"}
2626
"re" {>= "1.5.0"}
2727
"alcotest" {with-test}
2828
"odoc" {with-doc}

tyxml-syntax.opam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ doc: "https://ocsigen.org/tyxml/latest/manual/intro"
99
bug-reports: "https://github.com/ocsigen/tyxml/issues"
1010
depends: [
1111
"dune" {>= "2.7"}
12-
"ocaml" {>= "4.03"}
13-
"ppxlib" {>= "0.18"}
12+
"ocaml" {>= "4.08"}
13+
"ppxlib" {>= "0.36"}
1414
"re" {>= "1.5.0"}
1515
"uutf" {>= "1.0.0"}
1616
"alcotest" {with-test}

tyxml.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ doc: "https://ocsigen.org/tyxml/latest/manual/intro"
1111
bug-reports: "https://github.com/ocsigen/tyxml/issues"
1212
depends: [
1313
"dune" {>= "2.7"}
14-
"ocaml" {>= "4.03"}
14+
"ocaml" {>= "4.08"}
1515
"re" {>= "1.5.0"}
1616
"uutf" {>= "1.0.0"}
1717
"seq"

0 commit comments

Comments
 (0)