bensmrs / ppx_inline_module

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 ()

About

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


Languages

Language:OCaml 100.0%