Module Ppxlib.Longident

Overrides the Longident module of OCaml

type t = Ppxlib__.Import.longident =
| Lident of Ppxlib__.Import.string
| Ldot of t * Ppxlib__.Import.string
| Lapply of t * t
include Ppxlib__.Import.Comparable.S with type Longident.t := t
val (>=) : t -> t -> bool
val (<=) : t -> t -> bool
val (=) : t -> t -> bool
val (>) : t -> t -> bool
val (<) : t -> t -> bool
val (<>) : t -> t -> bool
val equal : t -> t -> bool
val compare : t -> t -> int
val min : t -> t -> t
val max : t -> t -> t
val ascending : t -> t -> int
val descending : t -> t -> int
val between : t -> low:t -> high:t -> bool
val clamp_exn : t -> min:t -> max:t -> t
val clamp : t -> min:t -> max:t -> t Base__.Or_error.t
type comparator_witness
val comparator : (tcomparator_witness) Base__.Comparator.comparator
val validate_lbound : min:t Base__.Maybe_bound.t -> t Base__.Validate.check
val validate_ubound : max:t Base__.Maybe_bound.t -> t Base__.Validate.check
val validate_bound : min:t Base__.Maybe_bound.t -> max:t Base__.Maybe_bound.t -> t Base__.Validate.check
val flatten_exn : t -> Ppxlib__.Import.string Ppxlib__.Import.list
val last_exn : t -> Ppxlib__.Import.string
val parse : Ppxlib__.Import.string -> t

Parses the given string as a longident, properly handling infix operators which may contain '.'. Note that it does not parse Lapply _ longidents and will raise Invalid_argument _ if passed values such as "A(B)".

val name : t -> Ppxlib__.Import.string