ocamlformatversion

Auto-formatter for OCaml code

ocamlformat is a code formatter for OCaml. It comes with opinionated default settings but is also fully customizable to suit your coding style.

  • Profiles: ocamlformat offers profiles we predefined formatting configurations. Profiles include default, ocamlformat, janestreet.
  • Configurable: Users can change the formatting profile and configure every option in their .ocamlformat configuration file.
  • Format Comments: ocamlformat can format comments, docstrings, and even code blocks in your comments.
  • RPC: ocamlformat provides an RPC server that can be used by other tools to easily format OCaml Code.
AuthorsJosh Berdine <jjb@fb.com>, Hugo Heuzard <hugo.heuzard@gmail.com>, Etienne Millon <etienne@tarides.com>, Guillaume Petiot <guillaume@tarides.com> and Jules Aguillon <jules@j3s.fr>
LicensesMIT and LGPL-2.1-only WITH OCaml-LGPL-linking-exception
Published
Homepagehttps://github.com/ocaml-ppx/ocamlformat
Issue Trackerhttps://github.com/ocaml-ppx/ocamlformat/issues
MaintainersGuillaume Petiot <guillaume@tarides.com>, Jules Aguillon <jules@j3s.fr> and Emile Trotignon <emile@tarides.com>
Dependencies
Source [http] https://github.com/ocaml-ppx/ocamlformat/releases/download/0.26.1/ocamlformat-0.26.1.tbz
sha256=da006e427f15b9ec612fb808d446599bd9b7c3ee25abeb3d555747a70d74c6d7
sha512=b7413f8dc47ba3a2372e89d59cae54f9a602ab81e31cd14ed986a831111080b79a5a3cc45dac04d8ffae5054c35bf29fe9559f145c76c87a30e191ed5400942a
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/ocamlformat/ocamlformat.0.26.1/opam
Required by