Stéphane Glondu pushed to branch upstream at Debian OCaml Maintainers / ppx-deriving-yojson
Commits:
-
73de6d0c
by Stephane Glondu at 2024-08-20T08:46:39+02:00
3 changed files:
Changes:
1 | +3.9.0
|
|
2 | +-----
|
|
3 | + |
|
4 | + * Expose Deriving.t values to allow definition of external Deriving aliases
|
|
5 | + (#159)
|
|
6 | + @NathanReb
|
|
7 | + |
|
1 | 8 | 3.8.0
|
2 | 9 | -----
|
3 | 10 |
... | ... | @@ -919,7 +919,7 @@ let make_gen f = |
919 | 919 | in
|
920 | 920 | Deriving.Generator.V2.make (args ()) f'
|
921 | 921 | |
922 | -let _to_deriving: Deriving.t =
|
|
922 | +let to_yojson: Deriving.t =
|
|
923 | 923 | Deriving.add
|
924 | 924 | "to_yojson"
|
925 | 925 | ~str_type_decl:(make_gen (fun ~options ~path (_, type_decls) ->
|
... | ... | @@ -931,7 +931,7 @@ let _to_deriving: Deriving.t = |
931 | 931 | ~str_type_ext:(make_gen ser_str_of_type_ext)
|
932 | 932 | ~sig_type_ext:(make_gen ser_sig_of_type_ext)
|
933 | 933 | |
934 | -let _of_deriving: Deriving.t =
|
|
934 | +let of_yojson: Deriving.t =
|
|
935 | 935 | Deriving.add
|
936 | 936 | "of_yojson"
|
937 | 937 | ~str_type_decl:(make_gen (fun ~options ~path (_, type_decls) ->
|
... | ... | @@ -944,7 +944,7 @@ let _of_deriving: Deriving.t = |
944 | 944 | ~sig_type_ext:(make_gen desu_sig_of_type_ext)
|
945 | 945 | |
946 | 946 | (* Not just alias because yojson also has meta (without its own deriver name) *)
|
947 | -let _deriving: Deriving.t =
|
|
947 | +let yojson: Deriving.t =
|
|
948 | 948 | Deriving.add
|
949 | 949 | "yojson"
|
950 | 950 | ~str_type_decl:(make_gen (fun ~options ~path (_, type_decls) ->
|
1 | +val to_yojson : Ppxlib.Deriving.t
|
|
2 | + |
|
3 | +val of_yojson : Ppxlib.Deriving.t
|
|
4 | + |
|
5 | +val yojson : Ppxlib.Deriving.t |