Module Subst.Unsafe
type t = Subst.unsafe Subst.substUnsafe substitutions introduced by with constraints, local substitutions (type t := int * int) or recursive module check.
val add_modtype :
Ident.t ->
Types.module_type ->
'any Subst.subst ->
Subst.Unsafe.tReplacing a module type name S by a non-path signature is unsafe as the packed module type (module S) becomes ill-formed.
val add_modtype_path :
Path.t ->
Types.module_type ->
'any Subst.subst ->
Subst.Unsafe.tval add_type_path : Path.t -> Path.t -> Subst.Unsafe.t -> Subst.Unsafe.tDeep editing inside a module type require to retypecheck the module, for applicative functors in path and module aliases.
val add_type_function :
Path.t ->
params:Types.type_expr list ->
body:Types.type_expr ->
Subst.Unsafe.t ->
Subst.Unsafe.tval add_module_path : Path.t -> Path.t -> Subst.Unsafe.t -> Subst.Unsafe.ttype 'a res := ('a, Subst.Unsafe.error) Stdlib.resultval type_declaration :
Subst.Unsafe.t ->
Types.type_declaration ->
Types.type_declaration Subst.Unsafe.resval signature_item :
Subst.scoping ->
Subst.Unsafe.t ->
Types.signature_item ->
Types.signature_item Subst.Unsafe.resval signature :
Subst.scoping ->
Subst.Unsafe.t ->
Types.signature ->
Types.signature Subst.Unsafe.resval compose :
Subst.Unsafe.t ->
Subst.Unsafe.t ->
Subst.Unsafe.t Subst.Unsafe.resComposition of substitutions is eager and fails when the two substitution are incompatible, for example module type t := sig end is not compatible with module type s := sig type t=(module t) end