| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- Empty values (e.g. [] for List, nothing for Maybe) |
| 5 |
------------------------------------------------------------------------ |
| 6 |
|
| 7 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 8 |
|
| 9 |
module Effect.Empty where |
| 10 |
|
| 11 |
open import Level using (Level; suc; _⊔_) |
| 12 |
|
| 13 |
private |
| 14 |
variable |
| 15 |
ℓ ℓ′ : Level |
| 16 |
A : Set ℓ |
| 17 |
|
| 18 |
record RawEmpty (F : Set ℓ → Set ℓ′) : Set (suc ℓ ⊔ ℓ′) where |
| 19 |
field |
| 20 |
empty : F A |
| 21 |
|
| 22 |
-- backwards compatibility: unicode variants |
| 23 |
∅ : F A |
| 24 |
∅ = empty |