| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- A universe polymorphic unit type, as a Lift of the Level 0 one. |
| 5 |
------------------------------------------------------------------------ |
| 6 |
|
| 7 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 8 |
|
| 9 |
module Data.Unit.Polymorphic.Base where |
| 10 |
|
| 11 |
open import Level using (Level; Lift; lift) |
| 12 |
import Data.Unit.Base as ⊤ |
| 13 |
|
| 14 |
------------------------------------------------------------------------ |
| 15 |
-- A unit type defined as a synonym |
| 16 |
|
| 17 |
⊤ : {ℓ : Level} → Set ℓ |
| 18 |
⊤ {ℓ} = Lift ℓ ⊤.⊤ |
| 19 |
|
| 20 |
tt : {ℓ : Level} → ⊤ {ℓ} |
| 21 |
tt = lift ⊤.tt |