package ppx_there

  1. Overview
  2. Docs
PPX extension for improved __MODULE__

Install

Dune Dependency

Authors

Maintainers

Sources

ppx_there-v0.0.0.tbz
sha256=02781a273c27e639f335c7a872502949d34a7ee3e17032715884e7f0ab8ba069
sha512=f8b341d92e5825d59f87dd7e2434ea81b8573bda443a47426af053bbdb324ada08d91a780197be9af65d6ce1f4a518eb0839c51229caeb48e85853e898e223a8

README.md.html

ppx_there

OCaml PPX extension for on-steroid __MODULE__.

Overview

ppx_there turns the [%there] extension points into the fully qualified path of the value in which they are found, as a string.

For example, the following code in a a.ml file:

module B = struct
  let c = [%there]
end

Is expanded into:

module B = struct
  let c = "A.B.c"
end