on master help sign in
Fix Show for HVects
53417ddMelvar Chen
libs/base/Data/HVect.idr+1−1
@@ -52,7 +52,7 @@ using (k : Nat, ts : Vect k Type)
52 shows (x::xs) = show x :: shows xs
52 shows (x::xs) = show x :: shows xs
53
53
54 instance (Shows k ts) => Show (HVect ts) where
54 instance (Shows k ts) => Show (HVect ts) where
55− show xs = show (shows xs)
55+ show xs = "[" ++ (pack . intercalate [','] . map unpack . toList $ shows xs) ++ "]"
56
56
57 ||| Extract an arbitrary element of the correct type.
57 ||| Extract an arbitrary element of the correct type.
58 ||| @ t the goal type
58 ||| @ t the goal type