/ppx_inline_module

A PPX rewriter to allow for one-line dotted expressions on unpacked modules

Primary LanguageOCaml

ppx_inline_module

ppx_inline_module is a PPX rewriter to write one-line dotted expressions on packed modules.

Usage

[%imod m.f] ()

behaves like:

let module M = (val m) in
M.f ()