package ppxx

  1. Overview
  2. Docs

Extensions of compiler-libs

module Longident : sig ... end
module Ident : sig ... end
module Path : sig ... end
module Location : sig ... end
module XParsetree : sig ... end

The followings are so common in PPX

val raise_errorf : ?loc:Location.t -> ?sub:Location.error list -> ?if_highlight:string -> ('a, Utils.Format.formatter, unit, 'b) Pervasives.format4 -> 'a

Same as Location.raise_errorf

type 'a loc = 'a Location.loc = {
  1. txt : 'a;
  2. loc : Location.t;
}

Same as Location.loc

OCaml

Innovation. Community. Security.