dbuenzli/fmt

OCaml Format pretty-printer combinators

77

stars

182

commits

OCaml

primary language

Feb 13, 2026

updated

erratique.ch/software/fmt

README

Fmt — OCaml Format pretty-printer combinators

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

Installation

Fmt can be installed with opam:

opam install fmt
opam install base-unix cmdliner fmt # Install all optional libraries

If you don't use opam consult the opam file for build instructions.

Documentation

The documentation can be consulted online or via odig doc fmt.

Questions are welcome but better asked on the OCaml forum than on the issue tracker.

Contributors

dbuenzli

154 commits

pqwy

11 commits

Drup

7 commits

hcarty

4 commits

dbuenzli/fmt

OCaml Format pretty-printer combinators

77

stars

182

commits

OCaml

primary language

Feb 13, 2026

updated

erratique.ch/software/fmt

README

Fmt — OCaml Format pretty-printer combinators

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

Installation

Fmt can be installed with opam:

opam install fmt
opam install base-unix cmdliner fmt # Install all optional libraries

If you don't use opam consult the opam file for build instructions.

Documentation

The documentation can be consulted online or via odig doc fmt.

Questions are welcome but better asked on the OCaml forum than on the issue tracker.

Contributors

dbuenzli

154 commits

pqwy

11 commits

Drup

7 commits

hcarty

4 commits

Languages

OCaml

100.0%