fix for packing and unpacking Object

This commit is contained in:
Hideyuki Tanaka
2011-03-18 00:44:15 +09:00
parent 86917b0ba7
commit f50855d5c0

View File

@@ -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