| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- Level polymorphic Empty type |
| 5 |
------------------------------------------------------------------------ |
| 6 |
|
| 7 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 8 |
|
| 9 |
module Data.Empty.Polymorphic where |
| 10 |
|
| 11 |
import Data.Empty as Empty using (⊥; ⊥-elim) |
| 12 |
open import Level using (Level; Lift; _⊔_) |
| 13 |
|
| 14 |
⊥ : {ℓ : Level} → Set ℓ |
| 15 |
⊥ {ℓ} = Lift ℓ Empty.⊥ |
| 16 |
|
| 17 |
-- make ⊥-elim dependent too, as it does seem useful |
| 18 |
⊥-elim : ∀ {w ℓ} {Whatever : ⊥ {ℓ} → Set w} → (witness : ⊥ {ℓ}) → Whatever witness |
| 19 |
⊥-elim () |