package bonsai
A library for building dynamic webapps, using Js_of_ocaml
Install
Dune Dependency
Authors
Maintainers
Sources
bonsai-v0.16.0.tar.gz
sha256=1d68aab713659951eba5b85f21d6f9382e0efa8579a02c3be65d9071c6e86303
doc/bonsai.quickcheck/Bonsai_quickcheck/Computation/index.html
Module Bonsai_quickcheck.Computation
Source
Source
type 'a t =
| Return : 'a Value.t -> 'a t
| Subst : 'a t * ('a, 'cmp) Witness.t * ('a Value.t -> 'b t) -> 'b t
| Subst2 : {
tuple_computation : ('f * 's) t;
first_witness : ('f, _) Witness.t;
second_witness : ('s, _) Witness.t;
f : 'f Value.t -> 's Value.t -> 'r t;
} -> 'r t
| Switch : {
either_value : ('f, 's) Core.Either.t Value.t;
first_witness : ('f, _) Witness.t;
second_witness : ('s, _) Witness.t;
f_first : 'f Value.t -> 'r t;
f_second : 's Value.t -> 'r t;
} -> 'r t
| Assoc : {
map_value : ('k, 'v, 'cmp) Core.Map.t Value.t;
key_witness : ('k, 'cmp) Witness.t;
value_witness : ('v, _) Witness.t;
result_witness : ('r, _) Witness.t;
f : 'k Value.t -> 'v Value.t -> 'r t;
} -> ('k, 'r, 'cmp) Core.Map.t t
| State : {
default_model : 'a;
default_witness : ('a, _) Witness.t;
} -> ('a * ('a -> unit Bonsai.Effect.t)) t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>