Debian Codegraph @

src/Reflection/AST/Argument/Relevance.agda

raw
1 ------------------------------------------------------------------------
2 -- The Agda standard library
3 --
4 -- Argument relevance used in the reflection machinery
5 ------------------------------------------------------------------------
6
7 {-# OPTIONS --cubical-compatible --safe #-}
8
9 module Reflection.AST.Argument.Relevance where
10
11 open import Relation.Nullary.Decidable.Core using (yes; no)
12 open import Relation.Binary.Definitions using (DecidableEquality)
13 open import Relation.Binary.PropositionalEquality.Core using (refl)
14
15 ------------------------------------------------------------------------
16 -- Re-exporting the builtins publicly
17
18 open import Agda.Builtin.Reflection public using (Relevance)
19 open Relevance public
20
21 ------------------------------------------------------------------------
22 -- Decidable equality
23
24 infix 4 _≟_
25
26 _≟_ : DecidableEquality Relevance
27 relevant ≟ relevant = yes refl
28 irrelevant ≟ irrelevant = yes refl
29 relevant ≟ irrelevant = no λ()
30 irrelevant ≟ relevant = no λ()