package odoc

  1. Overview
  2. Docs
OCaml documentation generator

Install

Dune Dependency

Authors

Maintainers

Sources

odoc-1.5.3.tbz
sha256=f2b76f811658c4b52cb48ac4ffc2ec37cedd2a805111c7f8ec20f8f36b8bbf45
sha512=9e069590e0737c94813d25235b5cfe27feb5a0298a17ff9b9ee446c69827c3a0ea3b7da5d05b278639cd1f0202e0d83356707979edfaa2af73876fc000c23c4d

doc/odoc.model/Odoc_model/Location_/index.html

Module Odoc_model.Location_

type point = {
  1. line : int;
  2. column : int;
}
type span = {
  1. file : string;
  2. start : point;
  3. end_ : point;
}
type +'a with_location = {
  1. location : span;
  2. value : 'a;
}
val at : span -> 'a -> 'a with_location
val location : 'a with_location -> span
val value : 'a with_location -> 'a
val map : ('a -> 'b) -> 'a with_location -> 'b with_location
val same : _ with_location -> 'b -> 'b with_location
val span : span list -> span
val nudge_start : int -> span -> span
val set_end_as_offset_from_start : int -> span -> span
val in_string : string -> offset:int -> length:int -> span -> span
OCaml

Innovation. Community. Security.