From 81dff79684ae5c6d94ab730f1f497dc5e13b87a5 Mon Sep 17 00:00:00 2001 From: Mark Laws Date: Tue, 9 Jun 2020 02:01:54 +0900 Subject: [PATCH] Use let () instead of let _ for ignored value This is simply to ease use of piqi with code that may (transitively) bring in ppx_js_style, which requires explicit type annotation of ignored values: https://github.com/janestreet/ppx_js_style#-allow-unannotated-ignores --- piqic-ocaml/piqic_ocaml_ext.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piqic-ocaml/piqic_ocaml_ext.ml b/piqic-ocaml/piqic_ocaml_ext.ml index 6266103..c298f97 100644 --- a/piqic-ocaml/piqic_ocaml_ext.ml +++ b/piqic-ocaml/piqic_ocaml_ext.ml @@ -29,7 +29,7 @@ let gen_init_piqi modname = iol [ ios "let piqi = "; ios modname; ios ".piqi"; eol; eol; eol; - ios "let _ = Piqirun_ext.init_piqi piqi"; eol; + ios "let () = Piqirun_ext.init_piqi piqi"; eol; ]