Skip to content

Commit ce4ea9f

Browse files
authored
Merge pull request #296 from kit-ty-kate/ocaml-5.4
Add support for OCaml 5.4
2 parents 0e8ad2a + f50e748 commit ce4ea9f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/api/ppx_deriving.cppo.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ let path_of_type_decl ~path type_decl =
349349
| Some { ptyp_desc = Ptyp_constr ({ txt = lid }, _) } ->
350350
begin match lid with
351351
| Lident _ -> []
352-
| Ldot (lid, _) -> Ocaml_common.Longident.flatten lid
352+
| Ldot (lid, _) -> Astlib.Longident.flatten lid
353353
| Lapply _ -> assert false
354354
end
355355
| _ -> path
@@ -608,13 +608,13 @@ let derive path pstr_loc item attributes fn arg =
608608
name,
609609
Options
610610
(options |> List.map (fun ({ txt }, expr) ->
611-
String.concat "." (Ocaml_common.Longident.flatten txt), expr))
611+
String.concat "." (Astlib.Longident.flatten txt), expr))
612612
| { pexp_desc = Pexp_apply ({ pexp_desc = Pexp_ident name }, _) } ->
613613
name, Unknown_syntax
614614
| { pexp_loc } ->
615615
raise_errorf ~loc:pexp_loc "Unrecognized [@@deriving] syntax"
616616
in
617-
let name, loc = String.concat "_" (Ocaml_common.Longident.flatten name.txt), name.loc in
617+
let name, loc = String.concat "_" (Astlib.Longident.flatten name.txt), name.loc in
618618
let is_optional, options =
619619
match options with
620620
| Unknown_syntax -> false, options

0 commit comments

Comments
 (0)