OCaml PPX extension for on-steroid __MODULE__
  • OCaml 95.6%
  • Dune 4.4%
Find a file
2019-04-26 14:02:32 +02:00
rewriter Implement ppx_there using Extension.V3 2019-04-26 13:50:12 +02:00
test/rewriter Add a test case for sub modules 2019-04-26 13:50:30 +02:00
.gitignore Add project skeleton 2019-03-14 21:42:15 +01:00
.travis.yml Add project skeleton 2019-03-14 21:42:15 +01:00
CHANGES.md Initial release 2019-04-26 13:57:51 +02:00
dune-project Implement ppx_there using Extension.V3 2019-04-26 13:50:12 +02:00
LICENSE.md Add project skeleton 2019-03-14 21:42:15 +01:00
ppx_there.opam Improve description 2019-04-26 14:00:31 +02:00
README.md Add build badge 2019-04-26 14:02:32 +02:00

ppx_there

OCaml PPX extension for on-steroid __MODULE__.

Build Status

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