package js_of_ocaml
Compiler from OCaml bytecode to JavaScript
Install
Dune Dependency
Authors
Maintainers
Sources
js_of_ocaml-5.8.1.tbz
sha256=0e886e10b273a8c48d9f453d5c4b8769ca1f3eba5ee950e0b1885adc943f4a53
sha512=1a55c5e2ba24a31dc51179e1b797e227c810c54c1e5a39ba1a35cdbfecd5119a91febcfc269524d9c64afebb6bb84c5485a01cd1b96387e2ac06563358e91560
doc/js_of_ocaml.deriving/Deriving_Json/index.html
Module Deriving_Json
Source
Typesafe IO (based on the deriving library).
The type of JSON parser/printer for value of type 'a
.
to_string Json.t<ty> v
marshal the v
of type ty
to a JSON string.
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
.
Deriver
Source
val read_option :
(Deriving_Json_lexer.lexbuf -> 'a) ->
Deriving_Json_lexer.lexbuf ->
'a option
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>