ribosome-host-0.9.9.9: Neovim plugin host for Polysemy
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ribosome.Host.Class.Msgpack.Encode

Synopsis

Documentation

class EncodeRecord (fields :: [FieldInfo]) (as :: [Type]) where Source #

Methods

encodeRecord :: NP I as -> [(Object, Object)] Source #

Instances

Instances details
EncodeRecord ('[] :: [FieldInfo]) ('[] :: [Type]) Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

Methods

encodeRecord :: NP I '[] -> [(Object, Object)] Source #

(KnownSymbol name, MsgpackEncode a, EncodeRecord fields as) => EncodeRecord ('FieldInfo name ': fields) (a ': as) Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

Methods

encodeRecord :: NP I (a ': as) -> [(Object, Object)] Source #

class EncodeCtor (ctor :: ConstructorInfo) (as :: [Type]) where Source #

Methods

encodeCtor :: NP I as -> Object Source #

Instances

Instances details
All MsgpackEncode as => EncodeCtor ('Constructor name) as Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

Methods

encodeCtor :: NP I as -> Object Source #

EncodeRecord fields as => EncodeCtor ('Record name fields) as Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

Methods

encodeCtor :: NP I as -> Object Source #

class EncodeCtors (ctors :: [ConstructorInfo]) (ass :: [[Type]]) where Source #

Methods

encodeCtors :: NS (NP I) ass -> Object Source #

Instances

Instances details
(EncodeCtor ctor as, EncodeCtors (ctor1 ': ctors) ass) => EncodeCtors (ctor ': (ctor1 ': ctors)) (as ': ass) Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

Methods

encodeCtors :: NS (NP I) (as ': ass) -> Object Source #

EncodeCtor ctor as => EncodeCtors '[ctor] '[as] Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

Methods

encodeCtors :: NS (NP I) '[as] -> Object Source #

class GMsgpackEncode (dt :: DatatypeInfo) (ass :: [[Type]]) where Source #

Methods

gtoMsgpack :: SOP I ass -> Object Source #

Instances

Instances details
MsgpackEncode a => GMsgpackEncode ('Newtype mod name ctor) '['[a]] Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

Methods

gtoMsgpack :: SOP I '['[a]] -> Object Source #

EncodeCtors ctors ass => GMsgpackEncode ('ADT mod name ctors strictness) ass Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

Methods

gtoMsgpack :: SOP I ass -> Object Source #

class MsgpackEncode a where Source #

Class of values that can be encoded to MessagePack Objects.

Minimal complete definition

Nothing

Methods

toMsgpack :: a -> Object Source #

Encode a value to MessagePack.

The default implementation uses generic derivation.

Instances

Instances details
MsgpackEncode Int64 Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

MsgpackEncode ByteString Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

MsgpackEncode Object Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

MsgpackEncode MicroSeconds Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

MsgpackEncode MilliSeconds Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

MsgpackEncode NanoSeconds Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

MsgpackEncode Seconds Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

MsgpackEncode Buffer Source # 
Instance details

Defined in Ribosome.Host.Api.Data

MsgpackEncode Tabpage Source # 
Instance details

Defined in Ribosome.Host.Api.Data

MsgpackEncode Window Source # 
Instance details

Defined in Ribosome.Host.Api.Data

MsgpackEncode DecodeError Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

MsgpackEncode FieldError Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

MsgpackEncode ValidUtf8 Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

MsgpackEncode EventName Source # 
Instance details

Defined in Ribosome.Host.Data.Event

MsgpackEncode Execution Source # 
Instance details

Defined in Ribosome.Host.Data.Execution

MsgpackEncode LuaRef Source # 
Instance details

Defined in Ribosome.Host.Data.LuaRef

MsgpackEncode Request Source # 
Instance details

Defined in Ribosome.Host.Data.Request

MsgpackEncode RequestId Source # 
Instance details

Defined in Ribosome.Host.Data.Request

MsgpackEncode RpcMethod Source # 
Instance details

Defined in Ribosome.Host.Data.Request

MsgpackEncode RpcError Source # 
Instance details

Defined in Ribosome.Host.Data.RpcError

MsgpackEncode RpcMessage Source # 
Instance details

Defined in Ribosome.Host.Data.RpcMessage

MsgpackEncode AutocmdBuffer Source # 
Instance details

Defined in Ribosome.Host.Data.RpcType

MsgpackEncode AutocmdEvents Source # 
Instance details

Defined in Ribosome.Host.Data.RpcType

MsgpackEncode AutocmdGroup Source # 
Instance details

Defined in Ribosome.Host.Data.RpcType

MsgpackEncode AutocmdId Source # 
Instance details

Defined in Ribosome.Host.Data.RpcType

MsgpackEncode AutocmdPatterns Source # 
Instance details

Defined in Ribosome.Host.Data.RpcType

MsgpackEncode Text Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

MsgpackEncode String Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

MsgpackEncode Integer Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

MsgpackEncode () Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

Methods

toMsgpack :: () -> Object Source #

MsgpackEncode Bool Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

MsgpackEncode Double Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

MsgpackEncode Float Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

MsgpackEncode Int Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

Methods

toMsgpack :: Int -> Object Source #

MsgpackEncode a => MsgpackEncode (NonEmpty a) Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

MsgpackEncode a => MsgpackEncode (Seq a) Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

Methods

toMsgpack :: Seq a -> Object Source #

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

Defined in Ribosome.Host.Class.Msgpack.Encode

Methods

toMsgpack :: Maybe a -> Object Source #

MsgpackEncode a => MsgpackEncode [a] Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

Methods

toMsgpack :: [a] -> Object Source #

(MsgpackEncode k, MsgpackEncode v) => MsgpackEncode (Map k v) Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

Methods

toMsgpack :: Map k v -> Object Source #

MsgpackEncode (Path b t) Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

Methods

toMsgpack :: Path b t -> Object Source #

(MsgpackEncode a, MsgpackEncode b) => MsgpackEncode (a, b) Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

Methods

toMsgpack :: (a, b) -> Object Source #

(MsgpackEncode a, MsgpackEncode b, MsgpackEncode c) => MsgpackEncode (a, b, c) Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Encode

Methods

toMsgpack :: (a, b, c) -> Object Source #