Debian Codegraph @

src/Data/These/Instances.agda

raw
1 ------------------------------------------------------------------------
2 -- The Agda standard library
3 --
4 -- Typeclass instances for These
5 ------------------------------------------------------------------------
6
7 {-# OPTIONS --cubical-compatible --safe #-}
8
9 module Data.These.Instances where
10
11 open import Data.These.Base using (These; this; that; these)
12 open import Data.These.Properties using (≡-dec)
13 open import Level using (Level)
14 open import Relation.Binary.PropositionalEquality.Core using (_≡_)
15 open import Relation.Binary.PropositionalEquality.Properties
16 using (isDecEquivalence)
17 open import Relation.Binary.TypeClasses using (IsDecEquivalence; _≟_)
18
19 private
20 variable
21 a b : Level
22 A : Set a
23 B : Set b
24
25 instance
26 These-≡-isDecEquivalence : {{IsDecEquivalence {A = A} _≡_}} → {{IsDecEquivalence {A = B} _≡_}} → IsDecEquivalence {A = These A B} _≡_
27 These-≡-isDecEquivalence = isDecEquivalence (≡-dec _≟_ _≟_)