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