package codept-lib

  1. Overview
  2. Docs

Location information within a file

type t =
  1. | Nowhere
  2. | Simple of {
    1. line : int;
    2. start : int;
    3. stop : int;
    }
  3. | Multiline of {
    1. start : int * int;
    2. stop : int * int;
    }

A location within a file

type 'a ext = {
  1. loc : t;
  2. data : 'a;
}

A data structure to add location data

val pp : Format.formatter -> t -> unit
val nowhere : 'a -> 'a ext
val create : t -> 'a -> 'a ext
val expand : t -> ((int * int) * (int * int)) option
val compress : t -> t
val merge : t -> t -> t
val keep_one : t -> t -> t
val fmap : ('a -> 'b) -> 'a ext -> 'b ext
val list : 'a ext list -> t
module Sch : sig ... end
OCaml

Innovation. Community. Security.