Dear OCaml developers,
I am happy to announce the first release of override (v0.1.0)!
Override is a PPX extension for overriding modules defined in other compiled interface files.
The library is available through opam: opam install override
The project is hosted on Inria Gitlab:
See README.md
for usage and examples.
This library generalizes ppx_import
by allowing a whole module to be imported with all its types, possibly with annotations. In particular, importing a whole module can be convenient to apply
ppx_deriving
to a large family of mutually inductive data types. Types can be systematically annotated, substituted, renamed, or removed. The library can be seen as a mechanization of @gasche’s post on Gagallium blog:
http://gallium.inria.fr/blog/overriding-submodules/
Happy hacking.