Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
SaltoIL.Coercion: Benoît Montagu <benoit.montagu@inria.fr> Copyright © Inria 2023
Coercions between modules
val pp : Format.formatter -> t -> unitFormatter for coercions
val hash_fold : Base.Hash.state -> t -> Base.Hash.stateFolding hash function
modtype_hnf env mty unfold the signature or module paths that are placed in front, until a signature or a functor is found. If a canonical signature path is found, then None is returned (this should correspond to abstract signatures).
val identity : tThe identity coercion
val is_identity : t -> boolTests whether a coercion is the identity coercion
compose c1 c2 is the coercion that is semantically equivalent to applying c1, and then applying c2
val compute : Env.t -> Types.module_type -> Env.t -> Types.module_type -> tcompute env_src mty_src env_dst mty_dst computes the coercion from the module type mty_src (viewed in the environment env_src) to the module type mty_dst (viewed in the environment env_dst). The coercions that are produced are always normalized.
val bound_value_identifiers : Types.signature -> Salto_id.Id.t listReturns the list of bindings that are exported by a signature