mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-07 18:29:53 +00:00
fix for packing and unpacking Object
This commit is contained in:
parent
86917b0ba7
commit
f50855d5c0
1 changed files with 2 additions and 2 deletions
|
|
@ -75,7 +75,7 @@ instance Unpackable Object where
|
|||
, liftM ObjectDouble get
|
||||
, liftM ObjectRAW get
|
||||
, liftM ObjectArray get
|
||||
, liftM ObjectMap get
|
||||
, liftM (ObjectMap . unAssoc) get
|
||||
]
|
||||
|
||||
instance Packable Object where
|
||||
|
|
@ -96,7 +96,7 @@ instance Packable Object where
|
|||
ObjectArray arr ->
|
||||
put arr
|
||||
ObjectMap m ->
|
||||
put m
|
||||
put $ Assoc m
|
||||
|
||||
-- | The class of types serializable to and from MessagePack object
|
||||
class (Unpackable a, Packable a) => OBJECT a where
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue