package js_of_ocaml
Compiler from OCaml bytecode to Javascript
Install
Dune Dependency
Authors
Maintainers
Sources
js_of_ocaml-3.6.0.tbz
sha256=51eaa89c83ef3168ef270bf7997cbc35a747936d3f51aa6fac58fb0323b4cbb0
sha512=a2171a2583e9a1be6b4a87c9958aa2b4936b1f19030f09d787c4824d04db864773dd1da10d0dd56822f279309c8217093552b94e2e93c8b01eba5f432afc7718
doc/js_of_ocaml.deriving/Deriving_Json/index.html
Module Deriving_Json
Typesafe IO (based on the deriving library).
val make :
(Buffer.t -> 'a -> unit) ->
(Deriving_Json_lexer.lexbuf -> 'a) ->
'a t
val read : 'a t -> Deriving_Json_lexer.lexbuf -> 'a
val to_string : 'a t -> 'a -> string
to_string Json.t<ty> v
marshal the v
of type ty
to a JSON string.
val from_string : 'a t -> string -> 'a
from_string Json.t<ty> s
safely unmarshal the JSON s
into an OCaml value of type ty
. Throws Failure
if the received value isn't the javascript representation of a value of type ty
.
module type Json = sig ... end
The signature of the JSON class.
Deriver
module type Json_min = sig ... end
module type Json_min' = sig ... end
module type Json_min'' = sig ... end
module Defaults'' (J : Json_min'') : Json with type a = J.a
module Json_int32 : Json with type a = int32
module Json_int64 : Json with type a = int64
module Json_nativeint : Json with type a = nativeint
module Json_float : Json with type a = float
module Json_string : Json with type a = string
val read_list :
(Deriving_Json_lexer.lexbuf -> 'a) ->
Deriving_Json_lexer.lexbuf ->
'a list
val read_ref :
(Deriving_Json_lexer.lexbuf -> 'a) ->
Deriving_Json_lexer.lexbuf ->
'a ref
val read_option :
(Deriving_Json_lexer.lexbuf -> 'a) ->
Deriving_Json_lexer.lexbuf ->
'a option
val read_array :
(Deriving_Json_lexer.lexbuf -> 'a) ->
Deriving_Json_lexer.lexbuf ->
'a array
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>