Skip to content

Commit

Permalink
Merge pull request #201 from mt-caret/master
Browse files Browse the repository at this point in the history
Add open to expose yojson functions used in derives
  • Loading branch information
akabe authored Aug 11, 2023
2 parents 961bcdc + e36e8d4 commit e8d7fbd
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 0 deletions.
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

0 comments on commit e8d7fbd

Please sign in to comment.