mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-23 00:08:01 +02:00
fix for packing and unpacking Object
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user