Debian Codegraph @

src/Data/Unit/Polymorphic/Instances.agda

raw
1 ------------------------------------------------------------------------
2 -- The Agda standard library
3 --
4 -- Instances for the polymorphic unit type
5 ------------------------------------------------------------------------
6
7 {-# OPTIONS --cubical-compatible --safe #-}
8
9 module Data.Unit.Polymorphic.Instances where
10
11 open import Data.Unit.Polymorphic.Base using (⊤)
12 open import Data.Unit.Polymorphic.Properties using (_≟_; ≡-isDecTotalOrder)
13 open import Level using (Level)
14 open import Relation.Binary.PropositionalEquality.Core
15 open import Relation.Binary.PropositionalEquality.Properties
16 using (isDecEquivalence)
17 open import Relation.Binary.TypeClasses
18 using (IsDecEquivalence; IsDecTotalOrder)
19
20 private
21 variable
22 a : Level
23
24 instance
25 ⊤-≡-isDecEquivalence : IsDecEquivalence {A = ⊤ {a}} _≡_
26 ⊤-≡-isDecEquivalence = isDecEquivalence _≟_
27
28 ⊤-≤-isDecTotalOrder : IsDecTotalOrder {A = ⊤ {a}} _≡_ _≡_
29 ⊤-≤-isDecTotalOrder = ≡-isDecTotalOrder _