Skip to content

Commit 198b383

Browse files
committed
Misc: specify interfaces for tyxml and toplevel.
1 parent a3f16f1 commit 198b383

File tree

14 files changed

+66
-5
lines changed

14 files changed

+66
-5
lines changed

examples/cubes/cubes.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* along with this program; if not, write to the Free Software
1818
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1919
*)
20+
open Js_of_ocaml
21+
open Js_of_ocaml_lwt
2022

2123
let n = 12
2224

examples/planet/planet.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ Stop animation when not visible!
4646
http://visibleearth.nasa.gov/view_rec.php?id=2431
4747
http://maps.jpl.nasa.gov/
4848
*)
49-
49+
open Js_of_ocaml
50+
open Js_of_ocaml_lwt
5051

5152
let width = 600
5253
let height = width

examples/webgl/webgldemo.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* along with this program; if not, write to the Free Software
1717
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1818
*)
19+
open Js_of_ocaml
1920
open Js_of_ocaml_lwt
2021
open Lwt
2122
open Js

examples/wiki/main.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
* You should have received a copy of the GNU Lesser General Public License
1717
* along with this program; if not, write to the Free Software
1818
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19-
*)
19+
*)
20+
open Js_of_ocaml
21+
open Js_of_ocaml_lwt
2022
module Html = Dom_html
2123

2224
let (>>=) = Lwt.bind

examples/wysiwyg/main.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
* along with this program; if not, write to the Free Software
1717
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1818
*)
19-
19+
open Js_of_ocaml
20+
open Js_of_ocaml_lwt
2021
module Html = Dom_html
2122

2223
let (>>=) = Lwt.bind

lib/lwt/graphics/graphics_js.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
*)
1919

2020
open Js_of_ocaml
21+
open Js_of_ocaml_lwt
2122
include Graphics
2223

2324
type context

lib/lwt/graphics/jbuild

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
(public_name js_of_ocaml-lwt.graphics)
55
(synopsis "Graphics for js_of_ocaml.")
66
(optional)
7-
(libraries (js_of_ocaml-lwt lwt graphics))
7+
(libraries (js_of_ocaml js_of_ocaml-lwt lwt graphics))
88
(preprocess (pps (js_of_ocaml-ppx)))))

lib/lwt/js_of_ocaml_lwt.ml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,7 @@ module File = struct
2828
end
2929

3030
module Jsonp = Lwt_jsonp
31+
32+
module Lwt_js = Lwt_js
33+
34+
module Lwt_js_events = Lwt_js_events

lib/tyxml/js_of_ocaml_tyxml.ml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
(* Js_of_ocaml library
2+
* http://www.ocsigen.org/js_of_ocaml/
3+
* Copyright (C) 2017 Hugo Heuzard
4+
*
5+
* This program is free software; you can redistribute it and/or modify
6+
* it under the terms of the GNU Lesser General Public License as published by
7+
* the Free Software Foundation, with linking exception;
8+
* either version 2.1 of the License, or (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU Lesser General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU Lesser General Public License
16+
* along with this program; if not, write to the Free Software
17+
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18+
*)
19+
20+
module Tyxml_js = Tyxml_js
21+
module Tyxml_cast = Tyxml_cast
22+
module Tyxml_cast_sigs = Tyxml_cast_sigs

toplevel/examples/lwt_toplevel_lib/colorize.mli

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
open Js_of_ocaml
2+
open Js_of_ocaml_tyxml
23
val text : a_class:string -> string
34
-> [> Html_types.div_content ] Tyxml_js.Html.elt
45

0 commit comments

Comments
 (0)