4

msgpack のhaskellクライアントとpythonクライアントの違いに混乱しています。これ:

import Data.MessagePack as MP
import Data.ByteString.Lazy as BL

BL.writeFile "test_haskell" $ MP.pack (0, 2, 28, ())

この:

import msgpack

with open("test_python", "w") as f:
    f.write(msgpack.packb([0, 2, 28, []]))

別のファイルを教えてください:

$ diff test_haskell test_python
Binary files test_haskell and test_python differ

私が間違っていることを誰かが説明できますか?ByteString多分私は使用法について何か誤解しましたか?

4

1 に答える 1