Safe Haskell | None |
---|---|
Language | Haskell2010 |
RON-Text serialization
Synopsis
- serializeAtom :: Atom -> ByteStringL
- serializeObject :: ObjectFrame a -> (UUID, ByteStringL)
- serializeOp :: Op -> ByteStringL
- serializeOpenOp :: UUID -> Op -> ByteStringL
- serializePayload :: Payload -> ByteStringL
- serializeRawOp :: ClosedOp -> ByteStringL
- serializeStateFrame :: StateFrame -> ByteStringL
- serializeString :: Text -> ByteStringL
- serializeUuid :: UUID -> ByteStringL
- serializeWireFrame :: WireFrame -> ByteStringL
- serializeWireFrames :: [WireFrame] -> ByteStringL
- uuidToString :: UUID -> String
- uuidToText :: UUID -> Text
Documentation
serializeAtom :: Atom -> ByteStringL Source #
Serialize a context-free atom
serializeObject :: ObjectFrame a -> (UUID, ByteStringL) Source #
Serialize an object. Return object id that must be stored separately.
serializeOp :: Op -> ByteStringL Source #
:: UUID | Previous op id |
-> Op | Current op |
-> ByteStringL |
serializePayload :: Payload -> ByteStringL Source #
Serialize an abstract payload
serializeRawOp :: ClosedOp -> ByteStringL Source #
Serialize a context-free raw op
serializeStateFrame :: StateFrame -> ByteStringL Source #
Serialize a state frame
serializeString :: Text -> ByteStringL Source #
Serialize a string atom
serializeUuid :: UUID -> ByteStringL Source #
Serialize UUID without context (used for test)
serializeWireFrame :: WireFrame -> ByteStringL Source #
Serialize a common frame
serializeWireFrames :: [WireFrame] -> ByteStringL Source #
Serialize a sequence of common frames
uuidToString :: UUID -> String Source #
uuidToText :: UUID -> Text Source #