package bonsai

  1. Overview
  2. Docs
A library for building dynamic webapps, using Js_of_ocaml

Install

Dune Dependency

Authors

Maintainers

Sources

v0.15.1.tar.gz
sha256=0c4a714146073f421f1a6179561f836b45d8dc012c743207d3481ea63bef74bf

doc/src/bonsai.test/helpers_intf.ml.html

Source file helpers_intf.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
open! Core
open! Import

module type S = sig
  type input
  type action

  val show : unit -> unit
  val set_input : input -> unit
  val do_actions : action list -> unit
end

module type Helpers = sig
  module type S = S

  val make
    :  driver:('input, 'result) Driver.t
    -> sexp_of_result:('result -> Sexp.t)
    -> (module S with type input = 'input and type action = Nothing.t)

  val make_with_inject
    :  driver:('input, 'result * ('action -> unit Ui_effect.t)) Driver.t
    -> sexp_of_result:('result -> Sexp.t)
    -> (module S with type input = 'input and type action = 'action)

  val make_string
    :  driver:('input, string) Driver.t
    -> (module S with type input = 'input and type action = Nothing.t)

  val make_string_with_inject
    :  driver:('input, string * ('action -> unit Ui_effect.t)) Driver.t
    -> (module S with type input = 'input and type action = 'action)
end
OCaml

Innovation. Community. Security.