package ppxlib

  1. Overview
  2. Docs
Standard infrastructure for ppx rewriters

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ppxlib-0.36.0.tbz
sha256=5aba1bce14c53108614130110c843d004bf93bd2cf3a0778fd7086b85390a434
sha512=1e3e8fee42fe74bffc178dbcbb2db8ec38dd23e71f6fed3c4c92618cf93892f5847787e6e9abb322f5c85d29a76afde28ce840b42e10fedc14cd82ba578ad06a

doc/src/ppxlib/loc.ml.html

Source file loc.ml

1
2
3
4
5
6
7
8
open! Import

type 'a t = 'a loc = { txt : 'a; loc : Location.t }

let txt t = t.txt
let loc t = t.loc
let make ~loc txt = { loc; txt }
let map t ~f = { t with txt = f t.txt }
OCaml

Innovation. Community. Security.