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
New upstream version 3.9.0
- - - - -


3 changed files:

- CHANGELOG.md
- src/ppx_deriving_yojson.ml
- src/ppx_deriving_yojson.mli


Changes:

=====================================
CHANGELOG.md
=====================================
@@ -1,3 +1,10 @@
+3.9.0
+-----
+
+  * Expose Deriving.t values to allow definition of external Deriving aliases
+    (#159)
+    @NathanReb
+
 3.8.0
 -----
 


=====================================
src/ppx_deriving_yojson.ml
=====================================
@@ -919,7 +919,7 @@ let make_gen f =
   in
   Deriving.Generator.V2.make (args ()) f'
 
-let _to_deriving: Deriving.t =
+let to_yojson: Deriving.t =
   Deriving.add
     "to_yojson"
     ~str_type_decl:(make_gen (fun ~options ~path (_, type_decls) ->
@@ -931,7 +931,7 @@ let _to_deriving: Deriving.t =
     ~str_type_ext:(make_gen ser_str_of_type_ext)
     ~sig_type_ext:(make_gen ser_sig_of_type_ext)
 
-let _of_deriving: Deriving.t =
+let of_yojson: Deriving.t =
   Deriving.add
     "of_yojson"
     ~str_type_decl:(make_gen (fun ~options ~path (_, type_decls) ->
@@ -944,7 +944,7 @@ let _of_deriving: Deriving.t =
     ~sig_type_ext:(make_gen desu_sig_of_type_ext)
 
 (* Not just alias because yojson also has meta (without its own deriver name) 
*)
-let _deriving: Deriving.t =
+let yojson: Deriving.t =
   Deriving.add
     "yojson"
     ~str_type_decl:(make_gen (fun ~options ~path (_, type_decls) ->


=====================================
src/ppx_deriving_yojson.mli
=====================================
@@ -0,0 +1,5 @@
+val to_yojson : Ppxlib.Deriving.t
+
+val of_yojson : Ppxlib.Deriving.t
+
+val yojson : Ppxlib.Deriving.t



View it on GitLab: 
https://salsa.debian.org/ocaml-team/ppx-deriving-yojson/-/commit/73de6d0ca8ed009872688c64c4f7e9319854c841

-- 
View it on GitLab: 
https://salsa.debian.org/ocaml-team/ppx-deriving-yojson/-/commit/73de6d0ca8ed009872688c64c4f7e9319854c841
You're receiving this email because of your account on salsa.debian.org.


Reply via email to