Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add open to expose yojson functions used in derives #201

Merged
merged 2 commits into from
Aug 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/completor/merlin.ml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
open Format
open Lwt.Infix
open Jupyter_log
open Ppx_yojson_conv_lib.Yojson_conv.Primitives

let string_of_bool b = if b then "y" else "n"

Expand Down
2 changes: 2 additions & 0 deletions src/core/comm.ml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. *)

open Ppx_yojson_conv_lib.Yojson_conv.Primitives

(** User-defined communication *)
type t =
{
Expand Down
2 changes: 2 additions & 0 deletions src/core/iopub.ml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. *)

open Ppx_yojson_conv_lib.Yojson_conv.Primitives

(** Contents on IOPUB channels *)

(** {2 Streams} *)
Expand Down
2 changes: 2 additions & 0 deletions src/core/message.ml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. *)

open Ppx_yojson_conv_lib.Yojson_conv.Primitives

(** Messaging in Jupyter *)

(** {2 Headers} *)
Expand Down
2 changes: 2 additions & 0 deletions src/core/shell.ml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. *)

open Ppx_yojson_conv_lib.Yojson_conv.Primitives

(** Contents on SHELL channels *)

type status =
Expand Down
2 changes: 2 additions & 0 deletions src/core/stdin.ml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. *)

open Ppx_yojson_conv_lib.Yojson_conv.Primitives

(** Contents on STDIN channel *)

(** {2 Inputs} *)
Expand Down
1 change: 1 addition & 0 deletions src/kernel/connection_info.ml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
(** Connection information *)

open Jupyter_log
open Ppx_yojson_conv_lib.Yojson_conv.Primitives

(** The type of connection information.

Expand Down
2 changes: 2 additions & 0 deletions tests/integration/ppx.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"source": [
"#require \"ppx_yojson_conv\" ;;\n",
"\n",
"open Ppx_yojson_conv_lib.Yojson_conv.Primitives\n",
"\n",
"type t = { foo : int; baz : string; } [@@deriving yojson]\n",
"\n",
"let expected = \"{\\\"foo\\\":42,\\\"baz\\\":\\\"hello\\\"}\"\n",
Expand Down
Loading