package ocamlformat
Build not yet checked sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Auto-formatter for OCaml code
Install
dune-project
Dependency
Authors
Maintainers
Sources
ocamlformat-0.30.0.tbz
sha256=586a5cc2f4aa5949d2059189eb2dd25d3505fc9224f4b07b994ca819ec640de4
sha512=141612346985dd3de57a2aa3db28d20230d3e612c42ea2ca6e0cb7713de15009bc362843de4511b8a95590d7a2dbab35ba659cb8d44cdf1fda79774be8b9cc67
doc/api.html
API
OCamlformat's library API: Ocamlformat. The entrypoint is the Ocamlformat.Translation_unit module.
A basic usage would be:
let () =
let conf = Conf.default in
match
Translation_unit.parse_and_format Syntax.Use_file conf
~output_file:"output.ml" ~input_name:"input.ml"
~source:"let x = y"
with
| Ok formatted ->
print_endline formatted
| Error e ->
Translation_unit.Error.print Format.err_formatter
~debug:conf.opr_opts.debug ~quiet:conf.opr_opts.quiet e
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>