Module

Data.Unit

Package
purescript-prelude
Repository
purescript/purescript-prelude

#Unit Source

data Unit :: Type

The Unit type has a single inhabitant, called unit. It represents values with no computational content.

Unit is often used, wrapped in a monadic type constructor, as the return type of a computation where only the effects are important.

Instances

#unit Source

unit :: Unit

unit is the sole inhabitant of the Unit type.