package js_of_ocaml
Compiler from OCaml bytecode to JavaScript
Install
Dune Dependency
Authors
Maintainers
Sources
js_of_ocaml-5.1.0.tbz
sha256=c17ad150772df43fc4e63ce1b9419f23c64169695a4cc4160eedcbc8f4d4c047
sha512=a13d02b9dba9105c19852e69aeaa516f4cdd1efb1354b01b612e144c35df3cfc7dc432ab291568ed419bad1a9388339a528c2d799dcc45ccc761de48ae18b790
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)"
>