package ppx_irmin

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

Install

Dune Dependency

Authors

Maintainers

Sources

irmin-3.2.1.tbz
sha256=9cfb7291a7d90ca0e55ece33040ad41e74cadd8c6446e04c33558bc1a1951518
sha512=9605acd77de9aae70ae96554a28594e6ed5beba70a48145c0fc2204b32bb23b843ba98cf034e88391581d5f3495154195c644d64a3aa3f8d3994a9c5518c5cda

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.