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

Ribosome.Host.Class.Msgpack.Decode

Description

Decoding values from MessagePack format

Synopsis

Documentation

class MsgpackDecode a where Source #

Class of values that can be decoded from MessagePack Objects.

Minimal complete definition

Nothing

Methods

fromMsgpack :: Object -> Either Text a Source #

Attempt to decode an Object, returning an error message in a Left if the data is incompatible.

The default implementation uses generic derivation.

missingKey :: String -> Object -> Either Text a Source #

Utility method called by the generic machinery when a record key is missing.

Instances

Instances details
MsgpackDecode Int64 Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Decode

MsgpackDecode ByteString Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Decode

MsgpackDecode Object Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Decode

MsgpackDecode MicroSeconds Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Decode

MsgpackDecode MilliSeconds Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Decode

MsgpackDecode NanoSeconds Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Decode

MsgpackDecode Seconds Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Decode

MsgpackDecode Buffer Source # 
Instance details

Defined in Ribosome.Host.Api.Data

MsgpackDecode Tabpage Source # 
Instance details

Defined in Ribosome.Host.Api.Data

MsgpackDecode Window Source # 
Instance details

Defined in Ribosome.Host.Api.Data

MsgpackDecode ApiInfo Source # 
Instance details

Defined in Ribosome.Host.Data.ApiInfo

MsgpackDecode ExtType Source # 
Instance details

Defined in Ribosome.Host.Data.ApiInfo

MsgpackDecode ExtTypeMeta Source # 
Instance details

Defined in Ribosome.Host.Data.ApiInfo

MsgpackDecode RpcDecl Source # 
Instance details

Defined in Ribosome.Host.Data.ApiInfo

MsgpackDecode ApiType Source # 
Instance details

Defined in Ribosome.Host.Data.ApiType

MsgpackDecode Bang Source # 
Instance details

Defined in Ribosome.Host.Data.Bang

MsgpackDecode Bar Source # 
Instance details

Defined in Ribosome.Host.Data.Bar

MsgpackDecode ChannelId Source # 
Instance details

Defined in Ribosome.Host.Data.ChannelId

MsgpackDecode CommandMods Source # 
Instance details

Defined in Ribosome.Host.Data.CommandMods

MsgpackDecode CommandRegister Source # 
Instance details

Defined in Ribosome.Host.Data.CommandRegister

MsgpackDecode EventName Source # 
Instance details

Defined in Ribosome.Host.Data.Event

MsgpackDecode Execution Source # 
Instance details

Defined in Ribosome.Host.Data.Execution

MsgpackDecode LuaRef Source # 
Instance details

Defined in Ribosome.Host.Data.LuaRef

MsgpackDecode RequestId Source # 
Instance details

Defined in Ribosome.Host.Data.Request

MsgpackDecode RpcMethod Source # 
Instance details

Defined in Ribosome.Host.Data.Request

MsgpackDecode RpcError Source # 
Instance details

Defined in Ribosome.Host.Data.RpcError

MsgpackDecode RpcMessage Source # 
Instance details

Defined in Ribosome.Host.Data.RpcMessage

MsgpackDecode AutocmdBuffer Source # 
Instance details

Defined in Ribosome.Host.Data.RpcType

MsgpackDecode AutocmdEvents Source # 
Instance details

Defined in Ribosome.Host.Data.RpcType

MsgpackDecode AutocmdGroup Source # 
Instance details

Defined in Ribosome.Host.Data.RpcType

MsgpackDecode AutocmdId Source # 
Instance details

Defined in Ribosome.Host.Data.RpcType

MsgpackDecode AutocmdPatterns Source # 
Instance details

Defined in Ribosome.Host.Data.RpcType

MsgpackDecode Text Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Decode

MsgpackDecode String Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Decode

MsgpackDecode Integer Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Decode

MsgpackDecode () Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Decode

MsgpackDecode Bool Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Decode

MsgpackDecode Char Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Decode

MsgpackDecode Double Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Decode

MsgpackDecode Float Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Decode

MsgpackDecode Int Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Decode

MsgpackDecode (Range style) Source # 
Instance details

Defined in Ribosome.Host.Data.Range

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

Defined in Ribosome.Host.Class.Msgpack.Decode

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

Defined in Ribosome.Host.Class.Msgpack.Decode

(MsgpackDecode a, MsgpackDecode b) => MsgpackDecode (Either a b) Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Decode

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

Defined in Ribosome.Host.Class.Msgpack.Decode

DecodePath b t => MsgpackDecode (Path b t) Source # 
Instance details

Defined in Ribosome.Host.Class.Msgpack.Decode

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

Defined in Ribosome.Host.Class.Msgpack.Decode

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

Defined in Ribosome.Host.Class.Msgpack.Decode

Methods

fromMsgpack :: Object -> Either Text (a, b, c) Source #

missingKey :: String -> Object -> Either Text (a, b, c) Source #

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

Defined in Ribosome.Host.Class.Msgpack.Decode

Methods

fromMsgpack :: Object -> Either Text (a, b, c, d) Source #

missingKey :: String -> Object -> Either Text (a, b, c, d) Source #

pattern Msgpack :: forall a. MsgpackDecode a => a -> Object Source #

Pattern synonym for decoding an Object.