aboutsummaryrefslogtreecommitdiff
path: root/src/Data/Array/Mixed.hs
diff options
context:
space:
mode:
authorMikolaj Konarski <mikolaj.konarski@gmail.com>2024-05-19 10:34:33 +0200
committerMikolaj Konarski <mikolaj.konarski@gmail.com>2024-05-19 10:34:33 +0200
commitd6a748e01924b249cf61bf9a6d1167f4ab49bf4e (patch)
tree8fbdb9436b7b3c46624407ba4e3f16eb97bad4d4 /src/Data/Array/Mixed.hs
parent607726b85cb83d2d29fafeca8cf73754b81995a4 (diff)
Fix empty lists displayed as ']'
Diffstat (limited to 'src/Data/Array/Mixed.hs')
-rw-r--r--src/Data/Array/Mixed.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Data/Array/Mixed.hs b/src/Data/Array/Mixed.hs
index 39d969c..aef8ac6 100644
--- a/src/Data/Array/Mixed.hs
+++ b/src/Data/Array/Mixed.hs
@@ -120,7 +120,7 @@ foldListX _ ZX = mempty
foldListX f (x ::% xs) = f x <> foldListX f xs
showListX :: forall sh f. (forall n. f n -> ShowS) -> ListX sh f -> ShowS
-showListX f l = go "[" l . showString "]"
+showListX f l = showString "[" . go "" l . showString "]"
where
go :: String -> ListX sh' f -> ShowS
go _ ZX = id