| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- Showing bounded vectors |
| 5 |
------------------------------------------------------------------------ |
| 6 |
|
| 7 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 8 |
|
| 9 |
module Data.Vec.Bounded.Show where |
| 10 |
|
| 11 |
open import Data.String.Base using (String) |
| 12 |
open import Data.Vec.Bounded.Base using (Vec≤) |
| 13 |
import Data.Vec.Show as Vec using (show) |
| 14 |
open import Function.Base using (_∘_) |
| 15 |
|
| 16 |
show : ∀ {a} {A : Set a} {n} → (A → String) → (Vec≤ A n → String) |
| 17 |
show s = Vec.show s ∘ Vec≤.vec |