package ppx_irmin

  1. Overview
  2. Docs
PPX deriver for Irmin type representations

Install

Dune Dependency

Authors

Maintainers

Sources

irmin-3.3.0.tbz
sha256=38f90d1dcada0a691e45ac9f26e1e0ea3e6967e9660c7b694fdd2423fbc92ea8
sha512=aac01211fb70c10727bdd8457f403f784d63f3be4d7b513577694448088006b6f39063d07a212f5b6f56639d0937231bef47c53cb56801460d6177824f6cbb81

doc/src/ppx_irmin.internal-lib/ppx_irmin_internal_lib.ml.html

Source file ppx_irmin_internal_lib.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
module Source_code_position = struct
  type t = string * int * int * int
  (** The type of inclusive ranges of source code positions, as generated by the
      OCaml {!__POS__} macro. The 4-tuple components are 'file name', 'line
      number', 'column start' and 'column end' respectively. *)

  let pp ppf (fname, line_number, col_start, col_end) =
    Format.fprintf ppf "File %S, line %d, characters %d-%d" fname line_number
      col_start col_end

  let tag : t Logs.Tag.def =
    Logs.Tag.def "Source_code_position"
      ~doc:"The source code location at which the log entry was generated." pp
end
OCaml

Innovation. Community. Security.