package ocamlc-loc

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
  • alert unstable The API of this library is not stable and may change without notice.
type warning = {
  1. code : int;
  2. name : string;
}
type loc = {
  1. path : string;
  2. line : [ `Single of int | `Range of int * int ];
  3. chars : (int * int) option;
}
type severity =
  1. | Error
  2. | Warning of warning option
type message =
  1. | Raw of string
  2. | Structured of {
    1. file_excerpt : string option;
    2. message : string;
    3. severity : severity;
    }
type report = {
  1. loc : loc;
  2. message : message;
  3. related : (loc * message) list;
}
val dyn_of_report : report -> Dyn.t
val parse : string -> report list
val parse_raw : string -> [ `Loc of [ `Related | `Parent ] * loc | `Message of message ] list