package ocamlformat-lib

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Warnings produced during parsing.

type 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

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

Pretty printer for t

val to_string : t -> string

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

OCaml

Innovation. Community. Security.