Skip to content

Commit 73f4da0

Browse files
authored
Add Show instance for (#15)
1 parent 252d8a3 commit 73f4da0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Class/Show/Instances.agda

+3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ instance
3333
Show-ℤ = Show _ ∋ record {M}
3434
where import Data.Integer.Show as M
3535

36+
Show-ℚ = Show _ ∋ record {M}
37+
where import Data.Rational.Show as M
38+
3639
Show-Fin : Show¹ Fin
3740
Show-Fin .show = ("# " ◇_) ∘ show ∘ toℕ
3841
where open import Data.Fin using (toℕ)

0 commit comments

Comments
 (0)