Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
class Serializable t where Source #
serialize :: t -> ByteString Source #
Converts to a binary representation.
Instances
Serializable Display Source # | Converts a display to a binary representation. |
Defined in Lighthouse.Display serialize :: Display -> ByteString Source # | |
Serializable Row Source # | |
Defined in Lighthouse.Display serialize :: Row -> ByteString Source # | |
Serializable ClientMessage Source # | |
Defined in Lighthouse.Protocol serialize :: ClientMessage -> ByteString Source # | |
Serializable Color Source # | |
Defined in Lighthouse.Utils.Color serialize :: Color -> ByteString Source # |
class Deserializable t where Source #
deserialize :: ByteString -> Either Text t Source #
Converts from a binary representation.
Instances
Deserializable ServerMessage Source # | |
Defined in Lighthouse.Protocol |