extism-pdk-1.2.0.0: Extism Plugin Development Kit
Safe HaskellSafe-Inferred
LanguageHaskell2010

Extism.PDK.MsgPack

Description

Provides the ability to use MessagePack for plugin input/output

Documentation

class MsgPack a where Source #

Instances

Instances details
MsgPack Int64 Source # 
Instance details

Defined in Extism.PDK.MsgPack

MsgPack Word64 Source # 
Instance details

Defined in Extism.PDK.MsgPack

MsgPack ByteString Source # 
Instance details

Defined in Extism.PDK.MsgPack

MsgPack Object Source # 
Instance details

Defined in Extism.PDK.MsgPack

MsgPack String Source # 
Instance details

Defined in Extism.PDK.MsgPack

MsgPack () Source # 
Instance details

Defined in Extism.PDK.MsgPack

MsgPack Bool Source # 
Instance details

Defined in Extism.PDK.MsgPack

MsgPack Double Source # 
Instance details

Defined in Extism.PDK.MsgPack

MsgPack Float Source # 
Instance details

Defined in Extism.PDK.MsgPack

MsgPack Int Source # 
Instance details

Defined in Extism.PDK.MsgPack

MsgPack Word Source # 
Instance details

Defined in Extism.PDK.MsgPack

MsgPack a => MsgPack (Maybe a) Source # 
Instance details

Defined in Extism.PDK.MsgPack

class GMsgPack f where Source #

Minimal complete definition

toGMsgPack

Methods

toGMsgPack :: f a -> Object Source #

fromGMsgPack :: Object -> Maybe (f a) Source #

Instances

Instances details
GMsgPack (U1 :: Type -> Type) Source # 
Instance details

Defined in Extism.PDK.MsgPack

(GMsgPack a, GMsgPack b) => GMsgPack (a :*: b) Source # 
Instance details

Defined in Extism.PDK.MsgPack

Methods

toGMsgPack :: (a :*: b) a0 -> Object Source #

fromGMsgPack :: Object -> Maybe ((a :*: b) a0) Source #

(GMsgPack a, GMsgPack b) => GMsgPack (a :+: b) Source # 
Instance details

Defined in Extism.PDK.MsgPack

Methods

toGMsgPack :: (a :+: b) a0 -> Object Source #

fromGMsgPack :: Object -> Maybe ((a :+: b) a0) Source #

MsgPack a => GMsgPack (K1 i a :: Type -> Type) Source # 
Instance details

Defined in Extism.PDK.MsgPack

Methods

toGMsgPack :: K1 i a a0 -> Object Source #

fromGMsgPack :: Object -> Maybe (K1 i a a0) Source #

GMsgPack a => GMsgPack (M1 i c a) Source # 
Instance details

Defined in Extism.PDK.MsgPack

Methods

toGMsgPack :: M1 i c a a0 -> Object Source #

fromGMsgPack :: Object -> Maybe (M1 i c a a0) Source #

array :: MsgPack a => [a] -> Object Source #

lookup :: MsgPack a => MsgPack b => a -> Object -> Maybe b Source #

object :: MsgPack a => MsgPack b => [(a, b)] -> Object Source #

(.=) :: MsgPack a => MsgPack b => a -> b -> (Object, Object) Source #

(.?) :: MsgPack a => MsgPack b => Object -> a -> Maybe b Source #

set :: (MsgPack a, MsgPack a) => a -> a -> Object -> Object Source #