jon.recoil.org

Module 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).

type t

negate x returns positive if x is negative and negative if x is positive.

Equality between polarity sign.

A comparison that act that negative < positive.

val to_string : Merlin_sherlodoc.Type_polarity.t -> string

Simple printer for polarity sign.