Revision 14874844
b/src/Ganeti/PyValueInstances.hs | ||
---|---|---|
48 | 48 |
instance (PyValue a, PyValue b) => PyValue (a, b) where |
49 | 49 |
showValue (x, y) = "(" ++ showValue x ++ "," ++ showValue y ++ ")" |
50 | 50 |
|
51 |
instance (PyValue a, PyValue b, PyValue c) => PyValue (a, b, c) where |
|
52 |
showValue (x, y, z) = |
|
53 |
"(" ++ |
|
54 |
showValue x ++ "," ++ |
|
55 |
showValue y ++ "," ++ |
|
56 |
showValue z ++ |
|
57 |
")" |
|
58 |
|
|
51 | 59 |
instance PyValue String where |
52 | 60 |
showValue = show |
53 | 61 |
|
Also available in: Unified diff