Odoc_examples.ExpansionExamples of different features of Expansion
For details on what each of the following examples is showing, see the explanations in the Features page
module Simple : sig ... endDemonstrates simple expansion with a type equality
module Aliases : sig ... endDemonstrates expansion when a module is an alias to a hidden module.
module ModuleTypeAliases : sig ... endDemonstrates that module types are not expanded if they're a simple path to another.
module ModuleTypeAliases2 : sig ... endDemonstrates that module types 'aliases' are produced by strengthening
module Functors : sig ... endDemonstrates the expansion of functors
module Include : sig ... endDemonstrates handling of include statements
module Shadowing : sig ... endDemonstrates shadowing of identifiers in includes
module DeepEquality : sig ... endDemonstrates expansion involving an equation on a type in a submodule
module DeepEquality2 : sig ... endDemonstrates expansion involving an equation on a type in a submodule, but the submodule is already a simple signature
module TypeSubstitution : sig ... endDemonstrates expansion involving deep destructive type substitution.
module ModuleTypeOf : sig ... endDemonstrates expanding after recovering the type of a module
module ModuleTypeOfComplications : sig ... endDemonstrates the interaction of module type of and destructive module substitution