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

Description

ppx_there is a ppx rewriter that turns [%there] extension points into a string representing the fully qualified path to the value in which it's defined.

Published: 26 Apr 2019

README

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

Dependencies (3)

  1. ppxlib >= "0.6.0" & < "0.9.0"
  2. ocaml >= "4.04.2"
  3. dune

Dev Dependencies

None

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.