Commit 3a933ed8 authored by Jose A. Lopes's avatar Jose A. Lopes
Browse files

Fix 'List' instance of 'PyValue'

Fix 'List' instance of 'PyValue' to properly convert Haskell lists to
Python lists.
Signed-off-by: default avatarJose A. Lopes <>
Reviewed-by: default avatarGuido Trotter <>
parent b2fbea47
......@@ -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 =
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment