From 3a933ed87c86c6e49e9b6693656c4bb8e12d469e Mon Sep 17 00:00:00 2001 From: "Jose A. Lopes" Date: Thu, 29 Aug 2013 11:08:51 +0200 Subject: [PATCH] Fix 'List' instance of 'PyValue' Fix 'List' instance of 'PyValue' to properly convert Haskell lists to Python lists. Signed-off-by: Jose A. Lopes Reviewed-by: Guido Trotter --- src/Ganeti/PyValueInstances.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ganeti/PyValueInstances.hs b/src/Ganeti/PyValueInstances.hs index 7111daa..890ce32 100644 --- a/src/Ganeti/PyValueInstances.hs +++ b/src/Ganeti/PyValueInstances.hs @@ -52,7 +52,7 @@ instance PyValue String where showValue = show instance PyValue a => PyValue [a] where - showValue xs = show (map showValue xs) + showValue xs = "[" ++ intercalate "," (map showValue xs) ++ "]" instance (PyValue k, PyValue a) => PyValue (Map k a) where showValue mp = -- 1.7.10.4