Shape_reducetype result = | Resolved of Shape.Uid.tShape reduction succeeded and a uid was found
*)| Resolved_alias of Shape.Uid.t * resultReduction led to an alias
*)| Resolved_local_use of Shape.Uid.tShape reduction was stuck on a functor parameter or a first class module and a new uid was generated linked to the item's declaration uid.
*)| Unresolved of Shape.tResult still contains Comp_unit terms
| Approximated of Shape.Uid.t optionReduction failed: it can arrive with first-class modules for example
*)| Missing_uid of Shape.t| Internal_error_missing_uidReduction succeeded but no uid was found, this should never happen
*)The result of reducing a shape and looking for its uid
val print_result : Format.formatter -> result -> unitThe Make functor is used to generate a reduction function for shapes.
local_reduce will not reduce shapes that require loading external compilation units.
val local_reduce_for_uid :
Env.t ->
namespace:Shape.Sig_component_kind.t ->
Path.t ->
Shape.t ->
resultlocal_reduce_for_uid will not reduce shapes that require loading external compilation units.