Skip to content

Commit

Permalink
Achieve compatibility with ppxlib 0.22.0
Browse files Browse the repository at this point in the history
In ppxlib 0.22.0, the AST gets bumped to ocaml 4.12. This commit adapts
to the compiler changes from 4.11 to 4.12: mainly, the introduction of
injectivity to type declarations.

Signed-off-by: Sonja Heinze <[email protected]>
  • Loading branch information
pitag-ha committed Feb 4, 2021
1 parent 7ba6144 commit 26fa817
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion expander/str_generate_sexp_grammar.ml
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ let singleton ~loc ~path core_type : t =
let type_variables, core_type =
collect_type_variables_of_polymorphic_grammar core_type
in
( List.map type_variables ~f:(fun var_name -> ptyp_var ~loc var_name, Invariant)
( List.map type_variables ~f:(fun var_name -> ptyp_var ~loc var_name, (NoVariance, NoInjectivity))
, core_type )
in
let td =
Expand Down
2 changes: 1 addition & 1 deletion ppx_sexp_conv.opam
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ depends: [
"base" {>= "v0.14" & < "v0.15"}
"sexplib0" {>= "v0.14" & < "v0.15"}
"dune" {>= "2.0.0"}
"ppxlib" {>= "0.18.0"}
"ppxlib" {>= "0.22.0"}
]
synopsis: "[@@deriving] plugin to generate S-expression conversion functions"
description: "
Expand Down

0 comments on commit 26fa817

Please sign in to comment.