lighthouse-client-0.2.0.0: Project Lighthouse client SDK
Safe HaskellSafe-Inferred
LanguageHaskell2010

Lighthouse.Utils.Serializable

Documentation

class Serializable t where Source #

Methods

serialize :: t -> ByteString Source #

Converts to a binary representation.

Instances

Instances details
Serializable Display Source #

Converts a display to a binary representation.

Instance details

Defined in Lighthouse.Display

Serializable Row Source # 
Instance details

Defined in Lighthouse.Display

Serializable ClientMessage Source # 
Instance details

Defined in Lighthouse.Protocol

Serializable Color Source # 
Instance details

Defined in Lighthouse.Utils.Color

class Deserializable t where Source #

Methods

deserialize :: ByteString -> Either Text t Source #

Converts from a binary representation.

Instances

Instances details
Deserializable ServerMessage Source # 
Instance details

Defined in Lighthouse.Protocol