package js_of_ocaml
Compiler from OCaml bytecode to JavaScript
Install
Dune Dependency
Authors
Maintainers
Sources
js_of_ocaml-5.9.1.tbz
sha256=68c95c60871d8e9c9a54c82f35e2ed50413bcb440f220d0b3516b2a1ee1c7307
sha512=288d68ea7a45e92375cf51c34bb1071dd26d0d8de54883f3422639561e1494ff43aa45c3d7466627fd7b5a9bb29a0c75e5744a3e7147f5d544bf2c5414083778
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)"
>