package merlin-lib

  1. Overview
  2. Docs
Merlin's libraries

Install

Dune Dependency

Authors

Maintainers

Sources

merlin-5.5-503.tbz
sha256=67da3b34f2fea07678267309f61da4a2c6f08298de0dc59655b8d30fd8269af1
sha512=1fb3b5180d36aa82b82a319e15b743b802b6888f0dc67645baafdb4e18dfc23a7b90064ec9bc42f7424061cf8cde7f8839178d8a8537bf4596759f3ff4891873

doc/merlin-lib.ocaml_typing/Ocaml_typing/Shape_reduce/index.html

Module Ocaml_typing.Shape_reduceSource

Sourcetype result =
  1. | Resolved of Shape.Uid.t
    (*

    Shape reduction succeeded and a uid was found

    *)
  2. | Resolved_alias of Shape.Uid.t * result
    (*

    Reduction led to an alias

    *)
  3. | Unresolved of Shape.t
    (*

    Result still contains Comp_unit terms

    *)
  4. | Approximated of Shape.Uid.t option
    (*

    Reduction failed: it can arrive with first-class modules for example

    *)
  5. | Internal_error_missing_uid
    (*

    Reduction succeeded but no uid was found, this should never happen

    *)

The result of reducing a shape and looking for its uid

Sourceval print_result : Format.formatter -> result -> unit
Sourcemodule Make (_ : sig ... end) : sig ... end

The Make functor is used to generate a reduction function for shapes.

Sourceval local_reduce : Env.t -> Shape.t -> Shape.t

local_reduce will not reduce shapes that require loading external compilation units.

Sourceval local_reduce_for_uid : Env.t -> Shape.t -> result

local_reduce_for_uid will not reduce shapes that require loading external compilation units.

OCaml

Innovation. Community. Security.