.TH "Unit" 3 2024-05-31 OCamldoc "OCaml library" .SH NAME Unit \- Unit values. .SH Module Module Unit .SH Documentation .sp Module .BI "Unit" : .B sig end .sp Unit values\&. .sp .B "Since" 4.08 .sp .sp .sp .PP .SS The unit type .PP .I type t = .B unit = | () .sp The unit type\&. .sp The constructor .ft B () .ft R is included here so that it has a path, but it is not intended to be used in user\-defined data types\&. .sp .I val equal : .B t -> t -> bool .sp .ft B equal u1 u2 .ft R is .ft B true .ft R \&. .sp .I val compare : .B t -> t -> int .sp .ft B compare u1 u2 .ft R is .ft B 0 .ft R \&. .sp .I val to_string : .B t -> string .sp .ft B to_string b .ft R is .ft B "()" .ft R \&. .sp