package fmt
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=fd221052a9d2c9be0a8f32d14b2cb35d72ec6f7cd828244759392adbec8ac79b
md5=41956d1d0fe32a1281326786cd208005
doc/README.html
Fmt — OCaml Format pretty-printer combinators
v0.8.0
Fmt exposes combinators to devise Format pretty-printing functions.
Fmt depends only on the OCaml standard library. The optional Fmt_tty library that allows to setup formatters for terminal color output depends on the Unix library. The optional Fmt_cli library that provides command line support for Fmt depends on Cmdliner.
Fmt is distributed under the ISC license.
Home page: http://erratique.ch/software/fmt Contact: Daniel Bünzli <daniel.buenzl i@erratique.ch>
Installation
Fmt can be installed with opam:
opam install fmt
opam install base-unix cmdliner fmt # Install all optional librariesIf you don't use opam consult the opam file for build instructions.
Documentation
The documentation and API reference is automatically generated by ocamldoc from the interfaces. It can be consulted online and there is a generated version in the doc directory of the distribution.
Sample programs
If you installed Fmt with opam sample programs are located in the directory opam config var fmt:doc.
In the distribution sample programs are located in the test directory of the distribution. They can be built with:
ocamlbuild -use-ocamlfind test/tests.otargetThe resulting binaries are in _build/test.
test.nativetests the library, nothing should fail.