The latest OCaml 3.12 introduces the function of first-class packaged modules:
First Class Package Modules.
- A new type of type expression for packaged modules:
(module PT) - A new kind of expression to package a module as a first-class value:
(module MODEXPR : PT) . - A new kind of module expression to unpack the value of the first class as a module:
(val EXPR : PT) . - PT is a package type of form
S or S with type t1 = ... and ... and type tn = ... ( S refers to the type of module).
Where can I find motivating examples or documents using this feature?
ocaml
t0yv0
source share