Skip to content

Commit

Permalink
Update to OCaml 5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
balat committed Mar 8, 2024
1 parent 10bcd6c commit 5836680
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* Update to OCaml 5.2

===== 10.3.1 (2024-02-21) =====
* Fixing Problem with browser navigation https://github.com/ocsigen/eliom/issues/781

Expand Down
4 changes: 3 additions & 1 deletion src/ppx/ppx_eliom_utils.ml
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,9 @@ module Cmo = struct
let rec type_of_out_type ty =
match ty with
| Otyp_var (_, s) -> Typ.var (var s)
| Otyp_arrow (lab, ty1, ty2) ->
| ((Otyp_arrow (lab, ty1, ty2)) [@if ocaml_version >= (5, 2, 0)]) ->
Typ.arrow lab (type_of_out_type ty1) (type_of_out_type ty2)
| ((Otyp_arrow (lab, ty1, ty2)) [@if ocaml_version < (5, 2, 0)]) ->
Typ.arrow (label_of_string lab) (type_of_out_type ty1)
(type_of_out_type ty2)
| Otyp_tuple tyl -> Typ.tuple (List.map type_of_out_type tyl)
Expand Down

0 comments on commit 5836680

Please sign in to comment.