package ocamlformat-lib

  1. Overview
  2. Docs
Auto-formatter for OCaml code

Install

Dune Dependency

Authors

Maintainers

Sources

ocamlformat-0.26.0.tbz
sha256=031494ab770cef10a8f6aa1cbeb5660e46c3aa6c0cd457b110fec859a75e877d
sha512=35c0131f04c2c8ceb94f0f400e4b56690405ddebb482aec0c9962163001d9fd5b593455df08b508394949f2740ba28f1714dff9e1f17b618bdec62fd26fae281

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.