package ocamlformat-lib

  1. Overview
  2. Docs
OCaml Code Formatter

Install

Dune Dependency

Authors

Maintainers

Sources

ocamlformat-0.26.2.tbz
sha256=2e4f596bf7aa367a844fe83ba0f6b0bf14b2a65179ddc082363fe9793d0375c5
sha512=b03d57462e65b11aa9f78dd5c4548251e8d1c5a1c9662f7502bdb10472aeb9df33c1d407350767a5223fbff9c01d53de85bafacd0274b49abc4b43701b159bee

doc/ocamlformat-lib.odoc_parser/Odoc_parser/Warning/index.html

Module Odoc_parser.WarningSource

Warnings produced during parsing.

Sourcetype t = {
  1. location : Loc.span;
  2. message : string;
}

Warnings are represented as record containing the human-readable text of the warning alongside the location of the offending text in the source

Sourceval pp : Format.formatter -> t -> unit

Pretty printer for t

Sourceval to_string : t -> string

to_string will format the location and warning as text to be printed.

OCaml

Innovation. Community. Security.