| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- The unit type and the total relation on unit |
| 5 |
------------------------------------------------------------------------ |
| 6 |
|
| 7 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 8 |
|
| 9 |
module Data.Unit.Base where |
| 10 |
|
| 11 |
------------------------------------------------------------------------ |
| 12 |
-- A unit type defined as a record type |
| 13 |
|
| 14 |
-- Note that by default the unit type is not universe polymorphic as it |
| 15 |
-- often results in unsolved metas. See `Data.Unit.Polymorphic` for a |
| 16 |
-- universe polymorphic variant. |
| 17 |
|
| 18 |
-- Note also that the name of this type is "\top", not T. |
| 19 |
|
| 20 |
open import Agda.Builtin.Unit public |
| 21 |
using (⊤; tt) |