package ppx_deriving

  1. Overview
  2. Docs
Type-driven code generation for OCaml >=4.02.2

Install

Dune Dependency

Authors

Maintainers

Sources

v4.4.1.tar.gz
sha256=27bc57774724fc4f48775f2011375a5ee1439570204abbf6607761c472757e2f

doc/ppx_deriving.runtime/Ppx_deriving_runtime/Unit/index.html

Module Ppx_deriving_runtime.Unit

Unit values.

  • since 4.08

The unit type

type t = unit =
  1. | ()
    (*

    The unit type.

    The constructor () is included here so that it has a path, but it is not intended to be used in user-defined data types.

    *)
val equal : t -> t -> bool

equal u1 u2 is true.

val compare : t -> t -> int

compare u1 u2 is 0.

val to_string : t -> string

to_string b is "()".

OCaml

Innovation. Community. Security.

On This Page
  1. The unit type