'Use OCamlFormat as a library

I would like to use ocamlformat as a library to automatically format some OCaml code I generate. There does not seem to be a simple function format : string -> string, but maybe there is a way to build it from existing components?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source