Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class MsgpackDecode a where Source #
Nothing
fromMsgpack :: Object -> Either Err a Source #
default fromMsgpack :: (Generic a, GMsgpackDecode (Rep a)) => Object -> Either Err a Source #
Instances
class GMsgpackDecode f where Source #
gMsgpackDecode :: Object -> Either Err (f a) Source #
gMissingKey :: String -> Object -> Either Err (f a) Source #
Instances
(GMsgpackDecode f, GMsgpackDecode g) => GMsgpackDecode (f :+: g :: k -> Type) Source # | |
GMsgpackDecode f => GMsgpackDecode (D1 c f :: k -> Type) Source # | |
MsgpackDecode a => GMsgpackDecode (K1 i a :: k -> Type) Source # | |
(Constructor c, MsgpackDecodeProd f) => GMsgpackDecode (C1 c f :: k -> Type) Source # | |
class MsgpackDecodeProd f where Source #
msgpackDecodeRecord :: Map Object Object -> Either Err (f a) Source #
msgpackDecodeProd :: [Object] -> Either Err ([Object], f a) Source #
Instances
(Selector s, GMsgpackDecode f) => MsgpackDecodeProd (S1 s f :: k -> Type) Source # | |
(MsgpackDecodeProd f, MsgpackDecodeProd g) => MsgpackDecodeProd (f :*: g :: k -> Type) Source # | |
integralFromString :: Read a => ByteString -> Either Err a Source #
msgpackText :: ConvertUtf8 t ByteString => Text -> (t -> Either Err a) -> Object -> Either Err a Source #
class DecodePath b t where Source #
decodePath :: FilePath -> Either SomeException (Path b t) Source #
Instances
DecodePath Abs File Source # | |
Defined in Ribosome.Msgpack.Decode decodePath :: FilePath -> Either SomeException (Path Abs File) Source # | |
DecodePath Abs Dir Source # | |
Defined in Ribosome.Msgpack.Decode decodePath :: FilePath -> Either SomeException (Path Abs Dir) Source # | |
DecodePath Rel File Source # | |
Defined in Ribosome.Msgpack.Decode decodePath :: FilePath -> Either SomeException (Path Rel File) Source # | |
DecodePath Rel Dir Source # | |
Defined in Ribosome.Msgpack.Decode decodePath :: FilePath -> Either SomeException (Path Rel Dir) Source # |
decodePathE :: forall b t. DecodePath b t => Text -> Either Err (Path b t) Source #
fromMsgpack' :: forall a e m. MonadDeepError e DecodeError m => MsgpackDecode a => Object -> m a Source #