on master help sign in
Merge pull request #1763 from ziman/show-vect
ec17e6aEdwin Brady
libs/prelude/Prelude.idr+1−5
@@ -217,11 +217,7 @@ instance Show a => Show (List a) where
217 show' acc (x :: xs) = show' (acc ++ show x ++ ", ") xs
217 show' acc (x :: xs) = show' (acc ++ show x ++ ", ") xs
218
218
219instance Show a => Show (Vect n a) where
219instance Show a => Show (Vect n a) where
220− show xs = "[" ++ show' xs ++ "]" where
220+ show = show . toList
221− show' : Vect n a -> String
222− show' [] = ""
223− show' [x] = show x
224− show' (x :: xs) = show x ++ ", " ++ show' xs
225
221
226instance Show a => Show (Maybe a) where
222instance Show a => Show (Maybe a) where
227 show Nothing = "Nothing"
223 show Nothing = "Nothing"