---
name: "Stdlib.Unit"
section: "3o"
platform: "linux"
package: "ocaml"
version: "5.5.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Stdlib.Unit"
---

# Stdlib.Unit(3o)

no description

## NAME

Stdlib.Unit - no description

## Module

Module   Stdlib.Unit

## Documentation

Module **Unit**\
  :  **(module Stdlib\_\_Unit)**

### The unit type

*type t* =  **unit** =\
  \| ()

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  **"()"** .
