Debian Codegraph @

src/Reflection/AST/Argument/Quantity.agda

raw
1 ------------------------------------------------------------------------
2 -- The Agda standard library
3 --
4 -- Argument quantities used in the reflection machinery
5 ------------------------------------------------------------------------
6
7 {-# OPTIONS --cubical-compatible --safe #-}
8
9 module Reflection.AST.Argument.Quantity 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 (Quantity)
19 open Quantity public
20
21 ------------------------------------------------------------------------
22 -- Decidable equality
23
24 infix 4 _≟_
25
26 _≟_ : DecidableEquality Quantity
27 quantity-ω ≟ quantity-ω = yes refl
28 quantity-0 ≟ quantity-0 = yes refl
29 quantity-ω ≟ quantity-0 = no λ()
30 quantity-0 ≟ quantity-ω = no λ()