Change Show for List to include brackets

This commit is contained in:
2025-12-08 08:25:01 -08:00
parent 6c836a6ef4
commit 55e9476607
4 changed files with 6 additions and 6 deletions

View File

@@ -828,7 +828,7 @@ instance ∀ a b. {{Show a}} {{Show b}} → Show (a × b) where
show (a,b) = "(" ++ show a ++ ", " ++ show b ++ ")"
instance a. {{Show a}} Show (List a) where
show xs = joinBy ", " $ map show xs
show xs = "[" ++ (joinBy ", " $ map show xs) ++ "]"
-- For now, I'm not having the compiler do this automatically