Tools covers builds, package management, editors, documentation and JavaScript compilation.
W45.2024 · 4–10 Nov/Tools
Features
odoc-md (PR #1234, opened): New package converting standalone Markdown files into page-*.odoc pages. Requires OCaml ≥ 4.14; no ocamldoc reference syntax supported.
odoc hierarchy (PR #1233, merged): Relaxes the disjointness constraint between -P and -L roots. A page root and library root may now overlap, enabling nested layouts.
odoc tags (PR #1239, opened):@-tags now terminate implicitly at a blank line, section heading, or next tag. Matches shorthand-list behaviour; addresses #1138.
odoc driver (PR #1236, merged): Implements the relaxed page/library hierarchy, removing the intermediate lib directory from the output tree.
ocamlfind 1.9.7: adds -with-relative-paths-at <prefix> to ./configure, resolving $PREFIX at runtime via environment variables instead of hardcoding absolute paths. Merged in #72.
ocamlfind 1.9.7:Fl_dynload.load_packages now accepts an optional loader function, replacing the default Dynlink.loadfile call. Useful for JSOO Web Workers where .cma-to-.js compilation is slow. Merged in #81.
Fixes
ocamlfind 1.9.7: corrects the ./configure sitelib check that broke opam install ocamlfind upgrades from 1.9.5 on OCaml 5.x switches. Merged in #61.
ocamlfind 1.9.7: the install step now uses cp for non-executable files instead of install, which was setting the executable bit on all installed files. Merged in #86.
js_of_ocaml #1733:caml_exn_with_js_backtrace allocates a new JS Error for constant exceptions, adding ~5× overhead to Not_found raises. The next release will not enable this by default.
odoc voodoo (PR #1241, opened): Splits compile and link phases so documentation links resolve across non-direct dependencies. Fixes layout errors in voodoo-generated pages.
Compatibility and Releases
ocamlfind 1.9.7: released via #87, closing the long-standing release request in #79.
odoc_driver (PR #1237, merged): splits the single odoc_driver command into three sub-commands (dune, opam, generic). Existing invocations using the old flat interface require updating.