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.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.