An empty tuple ()in Haskell is not like an empty tuple or an empty list in Python. This is similar to Nonein Python. (in the context of msgpack).
So, to get the same result, change the haskell program as:
MP.pack (0, 2, 28, []) -- empty list
Or change the python program as:
f.write(msgpack.packb([0, 2, 28, None]))
See the demo .
source
share