package ocamlformat-lib

  1. Overview
  2. Docs
OCaml Code Formatter

Install

Dune Dependency

Authors

Maintainers

Sources

ocamlformat-0.26.1.tbz
sha256=da006e427f15b9ec612fb808d446599bd9b7c3ee25abeb3d555747a70d74c6d7
sha512=b7413f8dc47ba3a2372e89d59cae54f9a602ab81e31cd14ed986a831111080b79a5a3cc45dac04d8ffae5054c35bf29fe9559f145c76c87a30e191ed5400942a

doc/ocamlformat-lib/Ocamlformat_lib/index.html

Module Ocamlformat_libSource

Sourcemodule Assoc : sig ... end
Sourcemodule Ast : sig ... end

Abstract syntax tree terms

Sourcemodule Box_debug : sig ... end
Sourcemodule Chunk : sig ... end
Sourcemodule Cmt : sig ... end
Sourcemodule Cmts : sig ... end

Placing and formatting comments in a parsetree.

Sourcemodule Conf : sig ... end
Sourcemodule Conf_decl : sig ... end

This module contains ways to declare command-line and config-files options for ocamlformat. To look at declared options, see Conf.mli. To declare a new option :

Sourcemodule Conf_t : sig ... end

This module contains the types of configuration options, along with small helper functions. It is separated from Conf to avoid dependency cycles.

Sourcemodule Docstring : sig ... end
Sourcemodule Eol_compat : sig ... end
Sourcemodule Exposed : sig ... end

Predicates for determining if an AST starts/ends with a </> symbol (respectively) when printed.

Sourcemodule Extended_ast : sig ... end
Sourcemodule Fmt : sig ... end

Formatting combinators

Sourcemodule Fmt_ast : sig ... end

Format OCaml Ast

Sourcemodule Fmt_odoc : sig ... end
Sourcemodule Literal_lexer : sig ... end
Sourcemodule Loc_tree : sig ... end
Sourcemodule Migrate_ast : sig ... end
Sourcemodule Multimap : sig ... end

Maps with a list of values attached to a key. This is an extension of the Map module, so these are compatible with Map.mem, etc.

A tree of non-overlapping intervals. Intervals are non-overlapping if whenever 2 intervals share more than an end-point, then one contains the other.

Sourcemodule Normalize_extended_ast : sig ... end
Sourcemodule Normalize_std_ast : sig ... end
Sourcemodule Params : sig ... end
Sourcemodule Parse_with_comments : sig ... end
Sourcemodule Prec : sig ... end
Sourcemodule Source : sig ... end
Sourcemodule Std_ast : sig ... end

Interface over the AST defined in vendor/ocaml-4.13

Sourcemodule Std_longident : sig ... end
Sourcemodule Sugar : sig ... end
Sourcemodule Syntax : sig ... end
Sourcemodule Toplevel_lexer : sig ... end
Sourcemodule Translation_unit : sig ... end
Sourcemodule Version : sig ... end
OCaml

Innovation. Community. Security.