Skip to content

Commit a055438

Browse files
jespercockxandreasabel
authored andcommitted
Add missing showQuantity function to Reflection.AST.Show
1 parent b773b73 commit a055438

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Reflection/AST/Show.agda

+5
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ open import Relation.Nullary.Decidable.Core using (yes; no)
2424

2525
open import Reflection.AST.Abstraction hiding (map)
2626
open import Reflection.AST.Argument hiding (map)
27+
open import Reflection.AST.Argument.Quantity
2728
open import Reflection.AST.Argument.Relevance
2829
open import Reflection.AST.Argument.Visibility
2930
open import Reflection.AST.Argument.Modality
@@ -58,6 +59,10 @@ showVisibility visible = "visible"
5859
showVisibility hidden = "hidden"
5960
showVisibility instance′ = "instance"
6061

62+
showQuantity : Quantity String
63+
showQuantity quantity-0 = "quantity-0"
64+
showQuantity quantity-ω = "quantity-ω"
65+
6166
showLiteral : Literal String
6267
showLiteral (nat x) = ℕ.show x
6368
showLiteral (word64 x) = ℕ.show (Word64.toℕ x)

0 commit comments

Comments
 (0)