merlin-lib.sherlodoc
Merlin_sherlodoc.Type_polarity
Describes the polarity sign of a type negative for contravariant parameters and positive for covariant parameters (the return of the function).
negative
positive
merlin-lib.analysis
merlin-lib.commands
merlin-lib.config
merlin-lib.dot_protocol
merlin-lib.extend
merlin-lib.kernel
merlin-lib.ocaml_compression
merlin-lib.ocaml_merlin_specific
merlin-lib.ocaml_parsing
merlin-lib.ocaml_preprocess
merlin-lib.ocaml_typing
merlin-lib.ocaml_utils
merlin-lib.os_ipc
merlin-lib.query_commands
merlin-lib.query_protocol
merlin-lib.utils
type t
val positive : t
val negative : t
val negate : t -> t
negate x returns positive if x is negative and negative if x is positive.
negate x
x
val equal : t -> t -> bool
Equality between polarity sign.
val compare : t -> t -> int
A comparison that act that negative < positive.
negative < positive
val to_string : t -> string
Simple printer for polarity sign.