Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
type ReifySOP (d :: Type) (dss :: [[Type]]) = (Generic d, GTo d, GCode d ~ dss, All2 Top dss) Source #
type ConstructSOP (d :: Type) (dss :: [[Type]]) = (Generic d, GFrom d, GCode d ~ dss, All2 Top dss) Source #
class MsgpackCtor (ctor :: ConstructorInfo) (as :: [Type]) Source #
class MsgpackCtors (ctors :: [ConstructorInfo]) (ass :: [[Type]]) where Source #
class GMsgpackDecode (dt :: DatatypeInfo) (ass :: [[Type]]) where Source #
Instances
MsgpackDecode a => GMsgpackDecode ('Newtype mod name ctor) '['[a]] Source # | |
Defined in Ribosome.Host.Class.Msgpack.DecodeSOP | |
MsgpackCtors ctors ass => GMsgpackDecode ('ADT mod name ctors strictness) ass Source # | |
Defined in Ribosome.Host.Class.Msgpack.DecodeSOP |
class MsgpackDecode a where Source #
Nothing
fromMsgpack :: Object -> Either Text a Source #
default fromMsgpack :: ConstructSOP a ass => ReifySOP a ass => GMsgpackDecode (GDatatypeInfoOf a) (GCode a) => Object -> Either Text a Source #
pattern Msgpack :: forall a. MsgpackDecode a => a -> Object Source #