-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
10ef727
commit db0ab3c
Showing
3 changed files
with
83 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
$ echo "type ('a, 'b) either [@@deriving json]" | ../browser/ppx_deriving_json_js_test.exe -intf - | ||
type ('a, 'b) either[@@deriving json] | ||
include | ||
sig | ||
[@@@ocaml.warning "-32"] | ||
val either_of_json : | ||
(Js.Json.t -> 'a) -> (Js.Json.t -> 'b) -> Js.Json.t -> ('a, 'b) either | ||
val either_to_json : | ||
('a -> Js.Json.t) -> ('b -> Js.Json.t) -> ('a, 'b) either -> Js.Json.t | ||
end[@@ocaml.doc "@inline"][@@merlin.hide ] | ||
|
||
$ echo "type ('a, 'b) either [@@deriving json]" | ../native/ppx_deriving_json_native_test.exe -intf - | ||
type ('a, 'b) either[@@deriving json] | ||
include | ||
sig | ||
[@@@ocaml.warning "-32"] | ||
val either_of_json : | ||
(Yojson.Basic.t -> 'a) -> | ||
(Yojson.Basic.t -> 'b) -> Yojson.Basic.t -> ('a, 'b) either | ||
val either_to_json : | ||
('a -> Yojson.Basic.t) -> | ||
('b -> Yojson.Basic.t) -> ('a, 'b) either -> Yojson.Basic.t | ||
end[@@ocaml.doc "@inline"][@@merlin.hide ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters