Module Ppx_template_expander.With_constraintSource
Source
val convert :
Astlib.Ast_500.Parsetree.module_type ->
Astlib.Ast_500.Parsetree.signature ->
(Astlib.Ast_500.Parsetree.module_type, Syntax_error.t) resultconvert mty sig_ returns the module type corresponding to
mty [@with: sig_]where sig_ has already been monomorphized by ppx_template.
Only some constructs have meaning in sig_
include sig endand[%%template:]are inlined- doc comments are preserved and attached to a best-effort relevant node within the final module type
- type, module, and module type bindings (e.g.
type t = tormodule type S := S) are converted to with constraints onmty module M : sig ... endis used to construct contsraints with multi-part identifier paths, e.g.module M : sig type t := t endproduces a
with type M.t := tconstraint